CallbackDebugBehavior 클래스

정의

WCF(Windows Communication Foundation) 콜백 개체에 대한 서비스 디버깅을 지정합니다.

public ref class CallbackDebugBehavior : System::ServiceModel::Description::IEndpointBehavior
public class CallbackDebugBehavior : System.ServiceModel.Description.IEndpointBehavior
type CallbackDebugBehavior = class
    interface IEndpointBehavior
Public Class CallbackDebugBehavior
Implements IEndpointBehavior
상속
CallbackDebugBehavior
구현

예제

다음 코드 예제에서는 클라이언트를 관리 되는 예외 정보에서에서 반환할 클라이언트 콜백 개체가 SOAP 메시지의 WCF에 지시 하는 구성 파일을 보여 줍니다.

  <client>
      <endpoint 
        address="http://localhost:8080/DuplexHello" 
        binding="wsDualHttpBinding"
        bindingConfiguration="WSDualHttpBinding_SampleDuplexHello"
        contract="SampleDuplexHello" 
        name="WSDualHttpBinding_SampleDuplexHello"
        behaviorConfiguration="enableCallbackDebug">
      </endpoint>
  </client>
<behaviors>
  <endpointBehaviors>
    <behavior name="enableCallbackDebug">
      <callbackDebug includeExceptionDetailInFaults="true"/>
    </behavior>
  </endpointBehaviors>
</behaviors>

설명

클라이언트 콜백 개체의 관리되는 예외 정보를 디버깅을 위해 서비스로 다시 보내려면 애플리케이션 구성 파일에서 또는 프로그래밍 방식으로 IncludeExceptionDetailInFaults 속성을 true로 설정합니다.

주의

관리되는 예외 정보를 서비스로 이동하면 예외 정보가 내부 클라이언트 구현 정보를 노출하여 권한이 없는 서비스에서 사용할 수 있으므로 보안상 위험할 수 있습니다. 또한 프로그래밍 방식으로 CallbackDebugBehavior 속성을 설정할 수도 있지만 배포 시 IncludeExceptionDetailInFaults 비활성화를 잊기 쉬울 수 있습니다.

보안 문제와 관련이 있으므로 다음 작업을 수행하는 것이 좋습니다.

  • 애플리케이션 구성 파일을 사용하여 IncludeExceptionDetailInFaults 속성 값을 true로 설정합니다.

  • 이 작업은 제어된 디버깅 시나리오에서만 수행하도록 합니다.

관리 되는 예외 정보와 관련 된 보안 문제에 대 한 자세한 내용은 참조 하세요. 지정 및 계약 및 서비스에서 오류 처리합니다.

클라이언트 애플리케이션 구성 파일에서 callbackDebug> 요소를 사용하여< 이 특성의 값을 설정할 수도 있습니다.

생성자

CallbackDebugBehavior(Boolean)

CallbackDebugBehavior 클래스의 새 인스턴스를 초기화합니다.

속성

IncludeExceptionDetailInFaults

클라이언트 콜백 개체가 관리되는 예외 정보를 SOAP 오류의 형태로 서비스에 반환하는지 여부를 제어하는 값을 가져오거나 설정합니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

AddBindingParameters(ServiceEndpoint, BindingParameterCollection) 메서드를 구현하여 동작을 지원합니다.

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

ApplyClientBehavior(ServiceEndpoint, ClientRuntime)를 구현하여 동작을 지원합니다.

IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)를 구현하여 동작을 지원합니다.

IEndpointBehavior.Validate(ServiceEndpoint)

Validate(ServiceEndpoint)를 구현하여 동작을 지원합니다.

적용 대상