using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Volo.Abp; namespace IdentityService.Host { public class Startup { public IServiceProvider ConfigureServices(IServiceCollection services) { services.AddApplication(options => { options.UseAutofac(); options.Configuration.UserSecretsAssembly = typeof(Startup).Assembly; }); return services.BuildServiceProviderFromFactory(); } public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { app.InitializeApplication(); } } }