public Task <JobHostContext> CreateAndLogHostStartedAsync(CancellationToken shutdownToken,
                                                           CancellationToken cancellationToken)
 {
     return(JobHostContextFactory.CreateAndLogHostStartedAsync(StorageAccountProvider,
                                                               FunctionIndexProvider, BindingProvider, HostIdProvider, HostInstanceLoggerProvider,
                                                               FunctionInstanceLoggerProvider, FunctionOutputLoggerProvider, QueueConfiguration,
                                                               BackgroundExceptionDispatcher, ConsoleProvider, shutdownToken, cancellationToken));
 }
Exemple #2
0
        public Task <JobHostContext> CreateAndLogHostStartedAsync(CancellationToken shutdownToken,
                                                                  CancellationToken cancellationToken)
        {
            IBindingProvider bindingProvider = null;

            return(JobHostContextFactory.CreateAndLogHostStartedAsync(StorageAccountProvider, FunctionIndexProvider,
                                                                      bindingProvider, new FixedHostIdProvider(Guid.NewGuid().ToString("N")),
                                                                      new NullHostInstanceLoggerProvider(), new NullFunctionInstanceLoggerProvider(),
                                                                      new NullFunctionOutputLoggerProvider(), Queues, BackgroundExceptionDispatcher.Instance,
                                                                      new NullConsoleProvider(), shutdownToken, cancellationToken));
        }
        public Task <JobHostContext> CreateAndLogHostStartedAsync(JobHost host, CancellationToken shutdownToken, CancellationToken cancellationToken)
        {
            ITypeLocator         typeLocator  = new DefaultTypeLocator(new StringWriter(), new DefaultExtensionRegistry());
            INameResolver        nameResolver = new RandomNameResolver();
            JobHostConfiguration config       = new JobHostConfiguration
            {
                NameResolver = nameResolver,
                TypeLocator  = typeLocator
            };

            return(JobHostContextFactory.CreateAndLogHostStartedAsync(
                       host, StorageAccountProvider, Queues, typeLocator, DefaultJobActivator.Instance, nameResolver,
                       new NullConsoleProvider(), new JobHostConfiguration(), shutdownToken, cancellationToken, new WebJobsExceptionHandler(),
                       functionIndexProvider: FunctionIndexProvider, singletonManager: SingletonManager, hostIdProvider: HostIdProvider));
        }
        public Task <JobHostContext> CreateAndLogHostStartedAsync(JobHost host, CancellationToken shutdownToken, CancellationToken cancellationToken)
        {
            INameResolver        nameResolver = new RandomNameResolver();
            JobHostConfiguration config       = new JobHostConfiguration
            {
                NameResolver = nameResolver,
                TypeLocator  = TypeLocator
            };

            return(JobHostContextFactory.CreateAndLogHostStartedAsync(
                       host, StorageAccountProvider, QueueConfiguration, TypeLocator, DefaultJobActivator.Instance, nameResolver,
                       ConsoleProvider, new JobHostConfiguration(), shutdownToken, cancellationToken, BackgroundExceptionDispatcher, HostIdProvider, FunctionExecutor,
                       FunctionIndexProvider, BindingProvider, HostInstanceLoggerProvider, FunctionInstanceLoggerProvider,
                       FunctionOutputLoggerProvider));
        }
        public Task <JobHostContext> CreateAndLogHostStartedAsync(CancellationToken shutdownToken, CancellationToken cancellationToken)
        {
            ITypeLocator         typeLocator  = new DefaultTypeLocator(new StringWriter());
            INameResolver        nameResolver = new RandomNameResolver();
            JobHostConfiguration config       = new JobHostConfiguration
            {
                NameResolver = nameResolver,
                TypeLocator  = typeLocator
            };

            return(JobHostContextFactory.CreateAndLogHostStartedAsync(
                       StorageAccountProvider, Queues, typeLocator, DefaultJobActivator.Instance, nameResolver,
                       new NullConsoleProvider(), new JobHostConfiguration(), shutdownToken, cancellationToken,
                       functionIndexProvider: FunctionIndexProvider));
        }
        public Task <JobHostContext> CreateAndLogHostStartedAsync(CancellationToken shutdownToken, CancellationToken cancellationToken)
        {
            ITypeLocator         typeLocator  = new DefaultTypeLocator(new StringWriter());
            INameResolver        nameResolver = new RandomNameResolver();
            JobHostConfiguration config       = new JobHostConfiguration
            {
                NameResolver = nameResolver,
                TypeLocator  = typeLocator
            };

            return(JobHostContextFactory.CreateAndLogHostStartedAsync(
                       StorageAccountProvider, config.Queues, typeLocator, DefaultJobActivator.Instance, nameResolver,
                       new NullConsoleProvider(), new JobHostConfiguration(), shutdownToken, cancellationToken,
                       new FixedHostIdProvider(Guid.NewGuid().ToString("N")),
                       null, new EmptyFunctionIndexProvider(),
                       null, new NullHostInstanceLoggerProvider(), new NullFunctionInstanceLoggerProvider(), new NullFunctionOutputLoggerProvider()));
        }