public void Apply(AceApplyFlags f) { AceSecurity aceSec = this.Security; // m_sec might be null AceIntegration aceInt = this.Integration; // m_int might be null if ((f & AceApplyFlags.Proxy) != AceApplyFlags.None) { IOConnection.SetProxy(aceInt.ProxyType, aceInt.ProxyAddress, aceInt.ProxyPort, aceInt.ProxyUserName, aceInt.ProxyPassword); } if ((f & AceApplyFlags.Ssl) != AceApplyFlags.None) { IOConnection.SslCertsAcceptInvalid = aceSec.SslCertsAcceptInvalid; } }
public void Apply(AceApplyFlags f) { AceApplication aceApp = this.Application; // m_aceApp might be null AceSecurity aceSec = this.Security; // m_sec might be null AceIntegration aceInt = this.Integration; // m_int might be null if ((f & AceApplyFlags.Proxy) != AceApplyFlags.None) { IOConnection.SetProxy(aceInt.ProxyType, aceInt.ProxyAddress, aceInt.ProxyPort, aceInt.ProxyAuthType, aceInt.ProxyUserName, aceInt.ProxyPassword); } if ((f & AceApplyFlags.Ssl) != AceApplyFlags.None) { IOConnection.SslCertsAcceptInvalid = aceSec.SslCertsAcceptInvalid; } if ((f & AceApplyFlags.FileTransactions) != AceApplyFlags.None) { FileTransactionEx.ExtraSafe = aceApp.FileTxExtra; } }