Ejemplo n.º 1
0
 public EasEndpointSettings(EasAuthenticationParameters authenticationParameters)
 {
     this.UserSmtpAddress    = authenticationParameters.UserSmtpAddress;
     this.NetworkCredential  = authenticationParameters.NetworkCredential;
     this.MostRecentEndpoint = new AutodiscoverEndpoint();
     if (!string.IsNullOrEmpty(authenticationParameters.EndpointOverride))
     {
         this.MostRecentEndpoint.DiscoveryDateTime = new DateTime?(DateTime.UtcNow);
         this.MostRecentEndpoint.Url = authenticationParameters.EndpointOverride;
         this.MostRecentDomain       = authenticationParameters.EndpointOverride;
     }
 }
Ejemplo n.º 2
0
 internal EasConnectionSettings(EasEndpointSettings easEndpointSettings, EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     this.EasEndpointSettings      = easEndpointSettings;
     this.ConnectionParameters     = connectionParameters;
     this.AuthenticationParameters = authenticationParameters;
     this.DeviceParameters         = deviceParameters;
 }
Ejemplo n.º 3
0
 public static IEasConnection CreateInstance(EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     return(EasConnection.hookableFactory.Value(connectionParameters, authenticationParameters, deviceParameters));
 }
Ejemplo n.º 4
0
 private EasConnection(EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     this.ConnectionParameters     = connectionParameters;
     this.AuthenticationParameters = authenticationParameters;
     this.DeviceParameters         = deviceParameters;
 }
Ejemplo n.º 5
0
 private static IEasConnection Factory(EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     return(new EasConnection(connectionParameters, authenticationParameters, deviceParameters).Initialize());
 }