public IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder)
        {
            if (_provider == null)
            {
                _provider = new FunctionsServiceProvider(containerBuilder);
            }
            else
            {
                _provider.AddServices(containerBuilder);
            }

            return(_provider);
        }
Ejemplo n.º 2
0
 public Startup(IConfiguration configuration, FunctionsServiceProvider serviceProvider)
 {
     Configuration    = configuration;
     _serviceProvider = serviceProvider;
 }
Ejemplo n.º 3
0
 public TestHostedService(FunctionsServiceProvider provider, ILoggerFactory loggerFactory)
 {
     _provider          = provider;
     this.loggerFactory = loggerFactory;
 }