다음을 통해 공유


SecureConversationSecurityTokenParameters.RequireCancellation 속성

정의

취소가 필요한지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

취소가 필요하면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

설명

Windows 인증 보안 컨텍스트 토큰과 함께 사용되는 경우 WCF는 속성을 실제 호출자의 ID로 채우 WindowsIdentity 지 않고 속성을 익명으로 설정합니다. WCF 보안은 들어오는 보안 컨텍스트 토큰의 모든 요청에 대해 서비스 보안 컨텍스트의 콘텐츠를 다시 만들어야 하므로 서버는 메모리의 보안 세션을 추적하지 않습니다. 인스턴스를 보안 컨텍스트 토큰으로 직렬화 WindowsIdentity 할 수 없으므로 속성은 WindowsIdentity 익명 ID를 반환합니다.

다음 구성에서는 이 동작을 보여 줍니다.

<customBinding>
  <binding name="Cancellation">
       <textMessageEncoding />
        <security
            requireSecurityContextCancellation="false">
              <secureConversationBootstrap
                 requireSecurityContextCancellation="true" />
      </security>
    <httpTransport />
  </binding>
</customBinding>

보안 컨텍스트 토큰에 대한 자세한 내용은 방법: 보안 세션에 대한 보안 컨텍스트 토큰 만들기를 참조하세요.

적용 대상