PersistenceProvider Constructor (Guid)

 

When implemented in a derived class, initializes a new instance of the PersistenceProvider class.

Namespace:   System.ServiceModel.Persistence
Assembly:  System.WorkflowServices (in System.WorkflowServices.dll)

protected:
PersistenceProvider(
	Guid id
)

Parameters

id
Type: System::Guid

The unique identifier of the service state data being saved.

The following code demonstrates how to use the PersistenceProvider constructor. This code example is part of the DurableServiceFactory SDK sample from the FilePersistenceProviderFactory.cs file. For more information, seethe DurableServiceFactory SDK sample.

public FilePersistenceProvider(Guid id, FilePersistenceProviderFactory factory)
    : base(id)
{
    this.factory = factory;
}

.NET Framework
Available since 3.5
Return to top
Show: