C# 클래스 NanoByte.Common.Net.NetUtils

Provides helper methods for the System.Net subsystem.
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

메소드 설명
ApplyProxy ( ) : void

Applies environment variable HTTP proxy server configuration if present.

Uses classic Linux environment variables: http_proxy, http_proxy_user, http_proxy_pass

TrustCertificates ( ) : void

Makes the SSL validation subsystem trust a set of certificates, even if their certificate chain is not trusted.

This method affects the global state of the AppDomain. Calling it more than once is not cumulative and will overwrite previous certificates. You should call this method exactly once near the beginning of your application.

메소드 상세

ApplyProxy() 공개 정적인 메소드

Applies environment variable HTTP proxy server configuration if present.
Uses classic Linux environment variables: http_proxy, http_proxy_user, http_proxy_pass
public static ApplyProxy ( ) : void
리턴 void

TrustCertificates() 공개 정적인 메소드

Makes the SSL validation subsystem trust a set of certificates, even if their certificate chain is not trusted.
This method affects the global state of the AppDomain. Calling it more than once is not cumulative and will overwrite previous certificates. You should call this method exactly once near the beginning of your application.
public static TrustCertificates ( ) : void
리턴 void