Partager via


CommandSetFactory.CreateAsync Method

Definition

Creates the service instance of T when requested.

public System.Threading.Tasks.Task<object> CreateAsync (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions activationOptions, IServiceProvider serviceProvider, Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient authorizationServiceClient, Type? instanceType, Type? interfaceType, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * IServiceProvider * Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient * Type * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
override this.CreateAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * IServiceProvider * Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient * Type * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Public Function CreateAsync (serviceMoniker As ServiceMoniker, activationOptions As ServiceActivationOptions, serviceProvider As IServiceProvider, authorizationServiceClient As AuthorizationServiceClient, instanceType As Type, interfaceType As Type, cancellationToken As CancellationToken) As Task(Of Object)

Parameters

serviceMoniker
ServiceMoniker
activationOptions
ServiceActivationOptions
serviceProvider
IServiceProvider
authorizationServiceClient
AuthorizationServiceClient
instanceType
Type
interfaceType
Type
cancellationToken
CancellationToken

Returns

Implements

Applies to