Share via


ExtensionCore.CreateAsync Method

Definition

Creates an instance of a ServiceHub service asynchronously.

public System.Threading.Tasks.Task<object> CreateAsync (IServiceProvider hostProvidedServices, Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions serviceActivationOptions, Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient authorizationServiceClient, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : IServiceProvider * Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * Microsoft.ServiceHub.Framework.IServiceBroker * Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
override this.CreateAsync : IServiceProvider * Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * Microsoft.ServiceHub.Framework.IServiceBroker * Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Public Function CreateAsync (hostProvidedServices As IServiceProvider, serviceMoniker As ServiceMoniker, serviceActivationOptions As ServiceActivationOptions, serviceBroker As IServiceBroker, authorizationServiceClient As AuthorizationServiceClient, cancellationToken As CancellationToken) As Task(Of Object)

Parameters

hostProvidedServices
IServiceProvider
serviceMoniker
ServiceMoniker
serviceActivationOptions
ServiceActivationOptions
serviceBroker
IServiceBroker
authorizationServiceClient
AuthorizationServiceClient
cancellationToken
CancellationToken

Returns

Implements

Applies to