private async Task <IFunctionIndex> CreateAsync(CancellationToken cancellationToken)
        {
            FunctionIndex        index   = new FunctionIndex();
            FunctionIndexer      indexer = new FunctionIndexer(_triggerBindingProvider, _bindingProvider, _activator, _executor, _extensions, _singletonManager, _trace, _loggerFactory);
            IReadOnlyList <Type> types   = _typeLocator.GetTypes();

            foreach (Type type in types)
            {
                await indexer.IndexTypeAsync(type, index, cancellationToken);
            }

            return(index);
        }
        private async Task <IFunctionIndex> CreateAsync(CancellationToken cancellationToken)
        {
            FunctionIndex        index           = new FunctionIndex();
            IBindingProvider     bindingProvider = _bindingProviderFactory;
            FunctionIndexer      indexer         = new FunctionIndexer(_triggerBindingProvider, bindingProvider, _activator, _executor, _extensions, _singletonManager, _loggerFactory, null, _sharedQueue, allowPartialHostStartup: _allowPartialHostStartup);
            IReadOnlyList <Type> types           = _typeLocator.GetTypes();

            foreach (Type type in types)
            {
                await indexer.IndexTypeAsync(type, index, cancellationToken);
            }

            return(index);
        }