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