Share via


MetadataServicesFactory.CreateAsync Method

Definition

Overloads

CreateAsync(IObservable<ExtensionInstallStateNotification>, TraceSource, JoinableTaskFactory, CancellationToken)

Creates an instance of metadata services factory.

CreateAsync(IObservable<ExtensionInstallStateNotification>, TraceSource, JoinableTaskFactory, IExtensionMetadataCache, CancellationToken)

Creates an instance of metadata services factory.

CreateAsync(IObservable<ExtensionInstallStateNotification>, TraceSource, JoinableTaskFactory, CancellationToken)

Creates an instance of metadata services factory.

public static System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataServicesFactory> CreateAsync (IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> extensionInstallStateNotification, System.Diagnostics.TraceSource logger, Microsoft.VisualStudio.Threading.JoinableTaskFactory joinableTaskFactory, System.Threading.CancellationToken cancellationToken);
static member CreateAsync : IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> * 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), logger As TraceSource, joinableTaskFactory As JoinableTaskFactory, cancellationToken As CancellationToken) As Task(Of MetadataServicesFactory)

Parameters

extensionInstallStateNotification
IObservable<ExtensionInstallStateNotification>

Observable instance providing extension paths to monitor.

logger
TraceSource

TraceSource instance to utilize for logging.

joinableTaskFactory
JoinableTaskFactory

JoinableTaskFactory instance to utilize.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

an instance of IExtensionMetadataService.

Applies to

CreateAsync(IObservable<ExtensionInstallStateNotification>, TraceSource, JoinableTaskFactory, IExtensionMetadataCache, CancellationToken)

Creates an instance of metadata services factory.

public static System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataServicesFactory> CreateAsync (IObservable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionInstallStateNotification> extensionInstallStateNotification, 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> * 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), logger As TraceSource, joinableTaskFactory As JoinableTaskFactory, extensionMetadataCache As IExtensionMetadataCache, cancellationToken As CancellationToken) As Task(Of MetadataServicesFactory)

Parameters

extensionInstallStateNotification
IObservable<ExtensionInstallStateNotification>

Observable instance providing extension paths to monitor.

logger
TraceSource

TraceSource instance to utilize for logging.

joinableTaskFactory
JoinableTaskFactory

JoinableTaskFactory instance to utilize.

extensionMetadataCache
IExtensionMetadataCache

Extension metadata cache instance to utilize, can be null if no cache is provided.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

an instance of IExtensionMetadataService.

Applies to