コード例 #1
0
        private async Task<IFunctionIndex> CreateAsync(CancellationToken cancellationToken)
        {
            FunctionIndex index = new FunctionIndex();
            FunctionIndexer indexer = new FunctionIndexer(_triggerBindingProvider, _bindingProvider, _activator, _executor, _extensions);
            IReadOnlyList<Type> types = _typeLocator.GetTypes();

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

            return index;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }