다음을 통해 공유


WSDualHttpBinding.BypassProxyOnLocal 속성

정의

로컬 주소에 대한 프록시 서버를 무시할지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

true로컬 주소에 대한 프록시 서버를 바이패스하려면 그렇지 않으면 . false 기본값은 false입니다.

예제

다음 예제에서는 구성 파일에서 wsDualHttpBinding 바인딩을 지정하는 방법을 보여 줍니다.

다음은 로컬 리소스에 대해 프록시를 바이패스해야 함을 나타내도록 이 속성을 설정하는 예제입니다.

WSDualHttpBinding BypassProxyOnLocalBinding =
    new WSDualHttpBinding();
BypassProxyOnLocalBinding.BypassProxyOnLocal = true;
Dim BypassProxyOnLocalBinding As New WSDualHttpBinding()
BypassProxyOnLocalBinding.BypassProxyOnLocal = True

이 속성의 값은 구성 파일에서도 설정할 수 있습니다.

설명

인터넷 리소스는 로컬 주소가 있는 경우 로컬입니다. 로컬 주소는 동일한 컴퓨터, 로컬 LAN 또는 인트라넷에 있는 주소이며 URI http://webserver/http://localhost/와 같이 마침표(.)가 없어 구문적으로 식별됩니다.

BypassProxyOnLocal 속성을 설정하면 로컬 리소스에 액세스할 때 프록시 서버를 사용하도록 구성된 WSDualHttpBinding 엔드포인트가 결정됩니다.

BypassProxyOnLocal경우 true 로컬 인터넷 리소스에 대한 요청은 프록시 서버를 사용하지 않습니다. 이 속성이 설정된 경우 클라이언트가 동일한 컴퓨터의 서비스와 통신할 때 프록시를 통과하도록 하려면 호스트 이름(대신 localhost)을 true사용합니다.

이 경우 BypassProxyOnLocalfalse모든 인터넷 요청은 프록시 서버를 통해 이루어집니다.

적용 대상