File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -132,23 +132,26 @@ AssemblyRegistry.Add(typeof(Program).Assembly);
132132
133133builder
134134 .ConfigureWithPandaVault ()
135- .AddSerilog (LogBackend .Loki )
136- .AddResponseCrafter (NamingConvention .ToUpperSnakeCase )
135+ .AddSerilog (LogBackend .ElasticSearch )
136+ .AddResponseCrafter (NamingConvention .ToSnakeCase )
137137 .AddOpenApi ()
138+ .AddMaintenanceMode ()
138139 .AddOpenTelemetry ()
139- .AddMapMinimalApis (AssemblyRegistry .ToArray ())
140+ .AddMinimalApis (AssemblyRegistry .ToArray ())
140141 .AddControllers (AssemblyRegistry .ToArray ())
141142 .AddMediatrWithBehaviors (AssemblyRegistry .ToArray ())
142143 .AddResilienceDefaultPipeline ()
143- .MapDefaultTimeZone ()
144+ .AddDistributedSignalR ( " localhost:6379 " , " app_name " ) // or .AddSignalR ()
144145 .AddDistributedCache (o =>
145146 {
146- o .RedisConnectionString = " redis:// localhost:6379" ;
147- o .ChannelPrefix = " app_name: " ;
147+ o .RedisConnectionString = " localhost:6379" ;
148+ o .ChannelPrefix = " app_name" ;
148149 })
149- .AddMaintenanceMode () // Works only with DistributedCache
150- .AddDistributedSignalR (" redis://localhost:6379" ," app_name:" ) // or .AddSignalR()
150+ .AddMassTransit (AssemblyRegistry .ToArray ())
151+ .AddFileExporter (AssemblyRegistry .ToArray ())
152+ .MapDefaultTimeZone ()
151153 .AddCors ()
154+ .AddOutboundLoggingHandler ()
152155 .AddHealthChecks ();
153156
154157
Original file line number Diff line number Diff line change 11using DistributedCache . Extensions ;
2+ using FileExporter . Extensions ;
23using FluentMinimalApiMapper ;
34using Microsoft . AspNetCore . Mvc ;
45using Microsoft . EntityFrameworkCore ;
3839 o . ChannelPrefix = "app_name" ;
3940 } )
4041 . AddMassTransit ( AssemblyRegistry . ToArray ( ) )
42+ . AddFileExporter ( AssemblyRegistry . ToArray ( ) )
4143 . MapDefaultTimeZone ( )
4244 . AddCors ( )
4345 . AddOutboundLoggingHandler ( )
You can’t perform that action at this time.
0 commit comments