PersistenceProvider::Load Method (TimeSpan)
When implemented in a derived class, loads service state information from the persistence store.
Assembly: System.WorkflowServices (in System.WorkflowServices.dll)
Parameters
- timeout
-
Type:
System::TimeSpan
The time period after which the persistence provider aborts this attempt.
Changes made to the security token in the Load method, if not reverted, stay in effect for the remainder of that message's processing. This means that the service operation's user code, the response message path through the dispatcher, as well as any error paths, run in the changed security context.
The following code demonstrates how to implement the Load 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 object Load(TimeSpan timeout) { base.ThrowIfDisposedOrNotOpen(); return this.factory.Load(this.Id, timeout); }
Available since 3.5