This documentation is archived and is not being maintained.

DurableOperationAttribute.CanCreateInstance Property

Gets or sets a value that indicates whether a new service instance can be created if an activation message is received on this operation. The dispatcher considers messages without an attached instance ID to be activation messages.

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

public bool CanCreateInstance { get; set; }

Property Value

Type: System.Boolean
true if a new service instance can be created; otherwise, false.

If your contract disallows sessions, then CanCreateInstance must be set to true for all operations.

If the contract permits or allows sessions, then all operations for which CanCreateInstance is set to true must be request/response operations: that is, IsOneWay cannot be set to true.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: