예제 #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;
     }
 }
예제 #2
0
 internal EasConnectionSettings(EasEndpointSettings easEndpointSettings, EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     this.EasEndpointSettings      = easEndpointSettings;
     this.ConnectionParameters     = connectionParameters;
     this.AuthenticationParameters = authenticationParameters;
     this.DeviceParameters         = deviceParameters;
 }
예제 #3
0
 public static IEasConnection CreateInstance(EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     return(EasConnection.hookableFactory.Value(connectionParameters, authenticationParameters, deviceParameters));
 }
예제 #4
0
 private EasConnection(EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     this.ConnectionParameters     = connectionParameters;
     this.AuthenticationParameters = authenticationParameters;
     this.DeviceParameters         = deviceParameters;
 }
예제 #5
0
 private static IEasConnection Factory(EasConnectionParameters connectionParameters, EasAuthenticationParameters authenticationParameters, EasDeviceParameters deviceParameters)
 {
     return(new EasConnection(connectionParameters, authenticationParameters, deviceParameters).Initialize());
 }