void IMailboxReplicationService.AttemptConnectToMRSProxy(string remoteHostName, Guid mbxGuid, string username, string password, string domain)
 {
     if (TestIntegration.Instance.SkipMrsProxyValidation)
     {
         return;
     }
     this.ForwardKnownExceptions(delegate
     {
         using (MailboxReplicationProxyClient.CreateConnectivityTestClient(remoteHostName, new NetworkCredential(username, password, domain), true))
         {
         }
     }, (Exception exception) => exception == null || exception.Message.IndexOf("The value of wsrm:Identifier is not a known Sequence identifier.", StringComparison.OrdinalIgnoreCase) >= 0);
 }
        void IMailboxReplicationService.PingMRSProxy(string serverFqdn, string username, string password, string domain, bool useHttps)
        {
            NetworkCredential credentials = null;

            if (!string.IsNullOrEmpty(username))
            {
                credentials = new NetworkCredential(username, password, domain);
            }
            this.ForwardKnownExceptions(delegate
            {
                using (MailboxReplicationProxyClient.CreateConnectivityTestClient(serverFqdn, credentials, useHttps))
                {
                }
            }, null);
        }