Esempio n. 1
0
        public override bool Equals(object obj)
        {
            ExchangeConnectionSettings exchangeConnectionSettings = obj as ExchangeConnectionSettings;

            if (exchangeConnectionSettings == null)
            {
                return(false);
            }
            bool flag = this.HasMrsProxy == exchangeConnectionSettings.HasMrsProxy;

            flag = (flag && this.IncomingAuthentication == exchangeConnectionSettings.IncomingAuthentication);
            flag = (flag && this.HasAutodiscovery == exchangeConnectionSettings.HasAutodiscovery);
            flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.AutodiscoverUrl, exchangeConnectionSettings.AutodiscoverUrl));
            flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.IncomingDomain, exchangeConnectionSettings.IncomingDomain));
            flag = (flag && this.IncomingEmailAddress.Equals(exchangeConnectionSettings.IncomingEmailAddress));
            if (!this.HasMrsProxy)
            {
                flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.IncomingExchangeServer, exchangeConnectionSettings.IncomingExchangeServer));
                flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.IncomingNSPIServer, exchangeConnectionSettings.IncomingNSPIServer));
                flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.SourceMailboxLegDn, exchangeConnectionSettings.SourceMailboxLegDn));
                flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.PublicFolderDatabaseServerLegacyDN, exchangeConnectionSettings.PublicFolderDatabaseServerLegacyDN));
            }
            flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.IncomingRPCProxyServer, exchangeConnectionSettings.IncomingRPCProxyServer));
            flag = (flag && ExchangeConnectionSettings.AreStringEqual(this.IncomingUserName, exchangeConnectionSettings.IncomingUserName));
            return(flag && ExchangeConnectionSettings.AreStringEqual(this.TargetDomainName, exchangeConnectionSettings.TargetDomainName));
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int num = 31;

            num ^= (this.HasMrsProxy ? 47 : 0);
            num ^= (this.HasAutodiscovery ? 109 : 0);
            if (!this.HasMrsProxy)
            {
                num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingExchangeServer);
                num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingNSPIServer);
                num ^= ExchangeConnectionSettings.SafeGetHashCode(this.SourceMailboxLegDn);
            }
            num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingAuthentication);
            num ^= ExchangeConnectionSettings.SafeGetHashCode(this.AutodiscoverUrl);
            num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingDomain);
            num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingEmailAddress);
            num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingRPCProxyServer);
            num ^= ExchangeConnectionSettings.SafeGetHashCode(this.IncomingUserName);
            return(num ^ ExchangeConnectionSettings.SafeGetHashCode(this.TargetDomainName));
        }
Esempio n. 3
0
        internal static TestMigrationServerAvailabilityOutcome Create(TestMigrationServerAvailabilityResult result, bool supportsCutover, ExchangeConnectionSettings connectionSettings)
        {
            TestMigrationServerAvailabilityOutcome testMigrationServerAvailabilityOutcome = new TestMigrationServerAvailabilityOutcome();

            testMigrationServerAvailabilityOutcome.Result          = result;
            testMigrationServerAvailabilityOutcome.SupportsCutover = supportsCutover;
            if (connectionSettings != null)
            {
                testMigrationServerAvailabilityOutcome.ConnectionSettings = (ExchangeConnectionSettings)connectionSettings.CloneForPresentation();
            }
            return(testMigrationServerAvailabilityOutcome);
        }
Esempio n. 4
0
 public static ExchangeConnectionSettings Create(string userName, string domain, string encryptedPassword, string incomingRpcProxyServer, string incomingExchangeServer, AuthenticationMethod incomingAuthentication, bool hasAdminPrivilege)
 {
     return(ExchangeConnectionSettings.Create(userName, domain, encryptedPassword, incomingRpcProxyServer, incomingExchangeServer, incomingAuthentication, hasAdminPrivilege, false));
 }