コード例 #1
0
        private void ConfigureOnPremisesConnectors()
        {
            switch (this.sendConnectorOperation)
            {
            case MailFlowTask.Operation.New:
                this.sendConnector = base.OnPremisesSession.NewSendConnector(this.BuildExpectedSendConnector());
                break;

            case MailFlowTask.Operation.Update:
                this.sendConnector.UpdateFrom(this.BuildExpectedSendConnector());
                base.OnPremisesSession.SetSendConnector(this.sendConnector);
                break;
            }
            if (this.receiveConnectorOperation == MailFlowTask.Operation.Update)
            {
                foreach (ADObjectId adobjectId in this.ReceivingTransportServers)
                {
                    Tuple <MailFlowTask.Operation, IReceiveConnector> tuple = this.receiveConnectorsByTransportServer[adobjectId.Name];
                    MailFlowTask.Operation item = tuple.Item1;
                    if (item == MailFlowTask.Operation.Update)
                    {
                        IReceiveConnector item2 = tuple.Item2;
                        item2.UpdateFrom(this.BuildExpectedReceiveConnector(adobjectId));
                        base.OnPremisesSession.SetReceiveConnector(item2);
                    }
                }
                foreach (ADObjectId adobjectId2 in this.EdgeTransportServers)
                {
                    string identity = string.Format("Default Frontend {0}", adobjectId2.ToString());
                    base.TaskContext.Warnings.Add(HybridStrings.WarningEdgeReceiveConnector(adobjectId2.ToString(), identity, this.TlsCertificateSubjectDomainName.Replace("*", "mail")));
                    this.edgeReceiveConnectorsWarningDisplayed = true;
                }
            }
        }