// This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            var mvc = ApplicationStartup.ConfigureServices(services);

            TodoStartup.ConfigureServices(services, mvc);

            var allMappingProfiles = new[] { Assembly.GetAssembly(typeof(TodoMappingProfile)) };

            ApplicationStartup.ConfigureModuleServices(services, allMappingProfiles);
        }
Exemple #2
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     _startup.ConfigureServices(services);
 }
Exemple #3
0
 // This method gets called by the runtime. Use this method to add services to the container.
 // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
 public void ConfigureServices(IServiceCollection services)
 {
     this.ConfigureAuthorization(services);
     _startup.ConfigureServices(services);
 }
 // This method gets called by the runtime. Use this method to add services to the container.
 // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
 public IServiceProvider ConfigureServices(IServiceCollection services)
 {
     return(_startup.ConfigureServices(services, _env));
 }