PersistenceProvider::BeginLoad Method (TimeSpan, AsyncCallback^, Object^)
When implemented in a derived class, represents the beginning of the Load phase. The Load phase occurs when state data is loaded into the persistence provider from the persistence store.
Assembly: System.WorkflowServices (in System.WorkflowServices.dll)
public: virtual IAsyncResult^ BeginLoad( TimeSpan timeout, AsyncCallback^ callback, Object^ state ) abstract
Parameters
- timeout
-
Type:
System::TimeSpan
The time period after which the persistence provider aborts this attempt.
- callback
-
Type:
System::AsyncCallback^
The method to be called when the operation is completed.
- state
-
Type:
System::Object^
A user-provided object that distinguishes this particular asynchronous operation from other operations.
The following code demonstrates how to implement the BeginLoad method. This code example is part of the DurableServiceFactory SDK sample from the FilePersistenceProviderFactory.cs file. For more information, seethe DurableServiceFactory SDK sample.
public override IAsyncResult BeginLoad(TimeSpan timeout, AsyncCallback callback, object state) { base.ThrowIfDisposedOrNotOpen(); return this.factory.BeginLoad(this.Id, timeout, callback, state); }
Available since 3.5