DurableOperationAttribute.CanCreateInstance 속성

정의

이 작업에 대한 활성화 메시지를 받은 경우 새 서비스 인스턴스를 만들 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. 디스패처에서는 첨부된 인스턴스 ID가 없는 메시지를 활성화 메시지로 간주합니다.

public:
 property bool CanCreateInstance { bool get(); void set(bool value); };
public bool CanCreateInstance { get; set; }
member this.CanCreateInstance : bool with get, set
Public Property CanCreateInstance As Boolean

속성 값

Boolean

새 서비스 인스턴스를 만들 수 있으면 true이고, 그렇지 않으면 false입니다.

설명

계약에서 세션을 허용하지 않는 경우 모든 작업에 대해 CanCreateInstancetrue로 설정해야 합니다.

계약에서 세션을 허용하는 경우 CanCreateInstancetrue로 설정된 모든 작업은 요청/응답 작업이어야 합니다. 즉, IsOneWaytrue로 설정할 수 없습니다.

적용 대상