|
|
@ -82,7 +82,6 @@ |
|
|
|
|
|
|
|
// Add application services.
|
|
|
|
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); |
|
|
|
services.AddSingleton<IConfiguration>(this.Configuration); |
|
|
|
services.AddTransient<IIdentityService,IdentityService>(); |
|
|
|
|
|
|
|
services.AddOptions(); |
|
|
@ -93,7 +92,7 @@ |
|
|
|
container.Populate(services); |
|
|
|
|
|
|
|
container.RegisterModule(new MediatorModule()); |
|
|
|
container.RegisterModule(new ApplicationModule()); |
|
|
|
container.RegisterModule(new ApplicationModule(Configuration["ConnectionString"] )); |
|
|
|
|
|
|
|
return new AutofacServiceProvider(container.Build()); |
|
|
|
} |
|
|
|