This topic has not yet been rated - Rate this topic

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.