Exemplo n.º 1
0
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            ConfigureServicesCallback?.Invoke(services);
            if (_inner != null)
            {
                services.AddMvc()
                .AddApplicationPart(_inner.GetTypeInfo().Assembly)
                .AddControllersAsServices();
            }

            return(services.BuildServiceProvider());
        }
Exemplo n.º 2
0
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            SetStartupMethods(services.BuildServiceProvider())
            ?.ConfigureServicesDelegate.Invoke(services);

            ConfigureServicesCallback?.Invoke(services);
            if (inner != null)
            {
                services.AddMvc().AddApplicationPart(inner.GetTypeInfo().Assembly).AddControllersAsServices();
            }
            return(services.BuildServiceProvider());
        }