WorkflowApplication.InstanceStore Property

Definition

Gets or sets an object that provides access to the persisted state of the current instance of the workflow application.

C#
public System.Runtime.DurableInstancing.InstanceStore InstanceStore { get; set; }

Property Value

An instance store.

Examples

The following example creates a WorkflowApplication instance and then configures the InstanceStore using a SqlWorkflowInstanceStore. This code example is part of How to: Create and Run a Long Running Workflow, which is part of the Getting Started Tutorial [.NET Framework 4.5].

C#
Activity wf = new WriteLine
{
    Text = "Hello world."
};

WorkflowApplication wfApp = new WorkflowApplication(wf);

Console.WriteLine("Id: {0}", wfApp.Id);

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1