/// <summary>
 /// Create a new gateway object utilizng a given key set.
 /// </summary>
 /// <param name="appKey">Application Key</param>
 /// <param name="appMasterSecret">Application Master Secret</param>
 public UrbanAirSharpGateway(string appKey, string appMasterSecret)
 {
     //UA has updated their endpoints to only allow TLS12 and TLS 11 connections, SSL 3 no longer works
     ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
     XmlConfigurator.Configure();
     ServiceModelConfig.Create(appKey, appMasterSecret);
 }
Beispiel #2
0
 /// <summary>
 /// Create a new gateway object utilizng a given key set.
 /// </summary>
 /// <param name="appKey">Application Key</param>
 /// <param name="appMasterSecret">Application Master Secret</param>
 public UrbanAirSharpGateway(string appKey, string appMasterSecret)
 {
     XmlConfigurator.Configure();
     ServiceModelConfig.Create(appKey, appMasterSecret);
 }
 public UrbanAirSharpGateway(String appKey, String appMasterSecret)
 {
     ServiceModelConfig.Create(appKey, appMasterSecret);
 }
 public UrbanAirSharpGateway(String appKey, String appMasterSecret, String host = null)
     : this(ServiceModelConfig.Create(appKey, appMasterSecret, host))
 {
 }