public void ConfigureServices(IServiceCollection services) { InversionOfControl.ConfigureServices(services); services.AddIdentity <IdentityUser, IdentityRole>() .AddEntityFrameworkStores <AppDbContext>() .AddDefaultTokenProviders(); services.AddMvc(); }
protected void Application_Start(object sender, EventArgs e) { var returnFaults = new ServiceDebugBehavior { IncludeExceptionDetailInFaults = true, HttpHelpPageEnabled = true }; var metadata = new ServiceMetadataBehavior { HttpGetEnabled = true }; InversionOfControl.RegisterAll(); InversionOfControl.Container .AddFacility <WcfFacility>() .Install(Configuration.FromXmlFile("SearchCustomerWindsorConfig.xml")) .Register( Component.For <IServiceBehavior>().Instance(returnFaults), Component.For <IServiceBehavior>().Instance(metadata)); _container = InversionOfControl.Container; }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { InversionOfControl.AddDependencies(services, Configuration); }