csharp_containers_api

Solution name fr4nc3.com.containers open project and build no error or warning

  • controller
    • ContainersController
  • DTO
    • ErrorResponse
    • ContainerFile
    • Middleware (to read the payload body) // not used but implemented
    • enableMultipleStreamReadMiddleware
    • MiddlewareEntensions
  • Models
  • Enum
  • Development configuration using secrets
  • Product Configuration without variables
  • swagger

Init secrets

dotnet user-secrets init --project fr4nc3.com.containers
dotnet user-secrets set "StorageConnection" "DefaultEndpointsProtocol=https;AccountName=fr;AccountKey=KEY;EndpointSuffix=core.windows.net" --project fr4nc3.com.containers
dotnet user-secrets set "ApplicationInsights:InstrumentationKey" "InstrumentationKey=GUID;IngestionEndpoint=https://eastus-0.in.applicationinsights.azure.com/" --project fr4nc3.com.containers
Successfully saved ApplicationInsights:InstrumentationKey = InstrumentationKey=GUID;IngestionEndpoint=https://eastus-0.in.applicationinsights.azure.com/ to the secret store.
dotnet user-secrets list --project fr4nc3.com.containers

ApplicationInsights implementation

Application Insights Configuration

Screenshot

Debug Logs

Screenshot

Application Map

Screenshot

Insights Home

Screenshot

Insights Performance

Screenshot

Console Logs

Screenshot

Insights API Access

Screenshot

Insights Errors

Screenshot

Insisghts live Metrics

Screenshot

Insisghts role Assingment

Screenshot

Unitests

22 unitests I modifed the RestSDKClient to make it work with the upload files

References

https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-5.0&tabs=windows

https://blog.elmah.io/asp-net-core-not-that-secret-user-secrets-explained/