Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft