C# Class withSIX.Core.Bla

显示文件 Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Public Methods

Method Description
GetHostType ( ) : CommonUrls.HostType
IgnoreBadCertificates ( ) : void

Together with the AcceptAllCertifications method right below this causes to bypass errors caused by SLL-Errors.

Private Methods

Method Description
AcceptAllCertifications ( object sender, X509Certificate certification, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

In Short: the Method solves the Problem of broken Certificates. Sometime when requesting Data and the sending Webserverconnection is based on a SSL Connection, an Error is caused by Servers whoes Certificate(s) have Errors. Like when the Cert is out of date and much more... So at this point when calling the method, this behaviour is prevented

Method Details

GetHostType() public static method

public static GetHostType ( ) : CommonUrls.HostType
return CommonUrls.HostType

IgnoreBadCertificates() public static method

Together with the AcceptAllCertifications method right below this causes to bypass errors caused by SLL-Errors.
public static IgnoreBadCertificates ( ) : void
return void