MetadataServicesFactory.CreateAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
CreateAsync(IObservable<ExtensionInstallStateNotification>, IServiceBroker, TraceSource, JoinableTaskFactory, CancellationToken) |
Cria uma instância de fábrica de serviços de metadados. |
CreateAsync(IObservable<ExtensionInstallStateNotification>, IServiceBroker, TraceSource, JoinableTaskFactory, IExtensionMetadataCache, CancellationToken) |
Cria uma instância de fábrica de serviços de metadados. |
CreateAsync(IObservable<ExtensionInstallStateNotification>, IServiceBroker, TraceSource, JoinableTaskFactory, CancellationToken)
Cria uma instância de fábrica de serviços de metadados.
public static System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataServicesFactory> CreateAsync (IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> extensionInstallStateNotification, Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, System.Diagnostics.TraceSource logger, Microsoft.VisualStudio.Threading.JoinableTaskFactory joinableTaskFactory, System.Threading.CancellationToken cancellationToken);
static member CreateAsync : IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> * Microsoft.ServiceHub.Framework.IServiceBroker * System.Diagnostics.TraceSource * Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataServicesFactory>
Public Shared Function CreateAsync (extensionInstallStateNotification As IObservable(Of ExtensionInstallStateNotification), serviceBroker As IServiceBroker, logger As TraceSource, joinableTaskFactory As JoinableTaskFactory, cancellationToken As CancellationToken) As Task(Of MetadataServicesFactory)
Parâmetros
- extensionInstallStateNotification
- IObservable<ExtensionInstallStateNotification>
Instância observável que fornece caminhos de extensão para monitorar.
- serviceBroker
- IServiceBroker
- logger
- TraceSource
Instância traceSource a ser utilizada para registro em log.
- joinableTaskFactory
- JoinableTaskFactory
Instância joinableTaskFactory a ser utilizada.
- cancellationToken
- CancellationToken
Token de cancelamento a ser monitorado.
Retornos
uma instância de IExtensionMetadataService.
Aplica-se a
CreateAsync(IObservable<ExtensionInstallStateNotification>, IServiceBroker, TraceSource, JoinableTaskFactory, IExtensionMetadataCache, CancellationToken)
Cria uma instância de fábrica de serviços de metadados.
public static System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataServicesFactory> CreateAsync (IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> extensionInstallStateNotification, Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, System.Diagnostics.TraceSource logger, Microsoft.VisualStudio.Threading.JoinableTaskFactory joinableTaskFactory, Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataCache? extensionMetadataCache, System.Threading.CancellationToken cancellationToken);
static member CreateAsync : IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> * Microsoft.ServiceHub.Framework.IServiceBroker * System.Diagnostics.TraceSource * Microsoft.VisualStudio.Threading.JoinableTaskFactory * Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionMetadataCache * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataServicesFactory>
Public Shared Function CreateAsync (extensionInstallStateNotification As IObservable(Of ExtensionInstallStateNotification), serviceBroker As IServiceBroker, logger As TraceSource, joinableTaskFactory As JoinableTaskFactory, extensionMetadataCache As IExtensionMetadataCache, cancellationToken As CancellationToken) As Task(Of MetadataServicesFactory)
Parâmetros
- extensionInstallStateNotification
- IObservable<ExtensionInstallStateNotification>
Instância observável que fornece caminhos de extensão para monitorar.
- serviceBroker
- IServiceBroker
- logger
- TraceSource
Instância traceSource a ser utilizada para registro em log.
- joinableTaskFactory
- JoinableTaskFactory
Instância joinableTaskFactory a ser utilizada.
- extensionMetadataCache
- IExtensionMetadataCache
A instância de cache de metadados de extensão a ser utilizada poderá ser nula se nenhum cache for fornecido.
- cancellationToken
- CancellationToken
Token de cancelamento a ser monitorado.
Retornos
uma instância de IExtensionMetadataService.