This commit is contained in:
parent
10c1bb008f
commit
3bbc5c96f1
@ -21,6 +21,7 @@
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="5.0.6" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.13" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.4" />
|
||||
|
@ -48,6 +48,7 @@ namespace HanyadikHetVan
|
||||
services.AddTransient<IEmailSender, EmailSender>();
|
||||
services.Configure<EmailSenderConfig>(Configuration.GetSection("EmailSender"));
|
||||
services.AddDatabaseDeveloperPageExceptionFilter();
|
||||
services.AddHealthChecks().AddDbContextCheck<ApplicationDbContext>();
|
||||
|
||||
services.AddAuthentication(config =>
|
||||
{
|
||||
@ -168,6 +169,7 @@ namespace HanyadikHetVan
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapHealthChecks("/healthz");
|
||||
endpoints.MapRazorPages();
|
||||
endpoints.MapControllers();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user