AsyncServiceCreatorCallback Temsilci

Tanım

Zaman uyumsuz hizmet Oluşturucu için geri çağırma.

public delegate System::Threading::Tasks::Task<System::Object ^> ^ AsyncServiceCreatorCallback(IAsyncServiceContainer ^ container, CancellationToken cancellationToken, Type ^ serviceType);
public delegate System.Threading.Tasks.Task<object> AsyncServiceCreatorCallback(IAsyncServiceContainer container, CancellationToken cancellationToken, Type serviceType);
type AsyncServiceCreatorCallback = delegate of IAsyncServiceContainer * CancellationToken * Type -> Task<obj>
Public Delegate Function AsyncServiceCreatorCallback(container As IAsyncServiceContainer, cancellationToken As CancellationToken, serviceType As Type) As Task(Of Object) 

Parametreler

container
IAsyncServiceContainer

Hizmet kapsayıcısı.

cancellationToken
CancellationToken

İptal belirteci.

serviceType
Type

Hizmetin türü.

Dönüş Değeri

Task<Object>

Hizmeti döndüren bir görev.

Şunlara uygulanır