@@ -30,6 +30,8 @@ public Startup(IConfiguration configuration)
3030 Configuration = configuration ;
3131 }
3232
33+ public IConfiguration Configuration { get ; }
34+
3335 // This method gets called by the runtime. Use this method to add services to the container.
3436 // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
3537 public IServiceProvider ConfigureServices ( IServiceCollection services )
@@ -115,15 +117,13 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
115117 return new AutofacServiceProvider ( container . Build ( ) ) ;
116118 }
117119
118- public IConfiguration Configuration { get ; }
119-
120120 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
121121 public void Configure ( IApplicationBuilder app , ILoggerFactory loggerFactory )
122122 {
123- loggerFactory . AddConsole ( Configuration . GetSection ( "Logging" ) ) ;
124- loggerFactory . AddDebug ( ) ;
125- loggerFactory . AddAzureWebAppDiagnostics ( ) ;
126- loggerFactory . AddApplicationInsights ( app . ApplicationServices , LogLevel . Trace ) ;
123+ // loggerFactory.AddConsole(Configuration.GetSection("Logging"));
124+ // loggerFactory.AddDebug();
125+ // loggerFactory.AddAzureWebAppDiagnostics();
126+ // loggerFactory.AddApplicationInsights(app.ApplicationServices, LogLevel.Trace);
127127
128128 var pathBase = Configuration [ "PATH_BASE" ] ;
129129 if ( ! string . IsNullOrEmpty ( pathBase ) )
@@ -159,13 +159,13 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
159159 private void ConfigureEventBus ( IApplicationBuilder app )
160160 {
161161 var eventBus = app . ApplicationServices . GetRequiredService < IEventBus > ( ) ;
162-
162+
163163 eventBus . Subscribe < OrderStatusChangedToAwaitingValidationIntegrationEvent , OrderStatusChangedToAwaitingValidationIntegrationEventHandler > ( ) ;
164164 eventBus . Subscribe < OrderStatusChangedToPaidIntegrationEvent , OrderStatusChangedToPaidIntegrationEventHandler > ( ) ;
165165 eventBus . Subscribe < OrderStatusChangedToStockConfirmedIntegrationEvent , OrderStatusChangedToStockConfirmedIntegrationEventHandler > ( ) ;
166166 eventBus . Subscribe < OrderStatusChangedToShippedIntegrationEvent , OrderStatusChangedToShippedIntegrationEventHandler > ( ) ;
167167 eventBus . Subscribe < OrderStatusChangedToCancelledIntegrationEvent , OrderStatusChangedToCancelledIntegrationEventHandler > ( ) ;
168- eventBus . Subscribe < OrderStatusChangedToSubmittedIntegrationEvent , OrderStatusChangedToSubmittedIntegrationEventHandler > ( ) ;
168+ eventBus . Subscribe < OrderStatusChangedToSubmittedIntegrationEvent , OrderStatusChangedToSubmittedIntegrationEventHandler > ( ) ;
169169 }
170170
171171 private void ConfigureAuthService ( IServiceCollection services )
0 commit comments