C# Class withSIX.Core.Bla

Afficher le fichier Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Méthodes publiques

Méthode Description
GetHostType ( ) : CommonUrls.HostType
IgnoreBadCertificates ( ) : void

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

Private Methods

Méthode 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 méthode

public static GetHostType ( ) : CommonUrls.HostType
Résultat CommonUrls.HostType

IgnoreBadCertificates() public static méthode

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