ApplicationInsights-Kubernetes icon indicating copy to clipboard operation
ApplicationInsights-Kubernetes copied to clipboard

Refresh all examples to .NET 6

Open xiaomi7732 opened this issue 2 years ago • 2 comments

The current position of examples are a bit awkward:

  • They have been out of date (.NET Core 2.0 projects).
  • The are unnecessary complex (A lot of ASP.NET Core MVC projects).

I think we shall learn the lesson:

I am proposing we providing new examples based on most simple project types that make sense:

  • [ ] WebAPI for ASP.NET Core (The bootstrap for WebAPI is the common base for various projects.)
    • [ ] Minimal API
    • [ ] Traditional Controller based
  • [x] .NET Worker Service for console application
    • Worker service isn't the simplest console application, but fits best in K8s scenario.

What do you think?

xiaomi7732 avatar May 23 '22 18:05 xiaomi7732

Overall I think it is a great idea! 👍

With regards to minimal API vs controller-style: ideally we should have at least one example of each kind. The reason is , doing greenfield development, minimal API might be more popular, but there is a lot of existing apps that use controller-style and might need to be moved to K8s. (channeling ASP.NET PM here)

karolz-ms avatar May 23 '22 21:05 karolz-ms

Hi @karolz-ms I think that is a good idea!

xiaomi7732 avatar May 24 '22 17:05 xiaomi7732

All examples planned have been updated. Close this issue. Please open new issues if you want examples for other scenarios.

xiaomi7732 avatar Aug 24 '22 19:08 xiaomi7732