AsyncServiceCreatorWithProgressCallback Temsilci

Tanım

Hizmetin bir örneği gerektiğinde çağrılan geri çağırma. Bu yalnızca bir kez çağrılır ve sonuç önbelleğe alınır.

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

Parametreler

container
IAsyncServiceContainer

Hizmet kapsayıcısı.

cancellationToken
CancellationToken

İptal belirteci.

serviceType
Type

Alınacak hizmetin türü.

progress
IProgress<ServiceProgressData>

İlerleme işaretçisi.

Dönüş Değeri

Task<Object>

Hizmeti döndüren bir görev.

Şunlara uygulanır