public MigrationEndpointObject(MigrationEndpoint endpoint) { this.Name = endpoint.Identity.Id; this.Identity = new Identity(endpoint.Identity); this.RemoteServer = endpoint.RemoteServer; this.Port = endpoint.Port; this.ExchangeServer = endpoint.ExchangeServer; this.RpcProxyServer = endpoint.RpcProxyServer; this.EndpointType = endpoint.EndpointType.ToString(); this.MaxConcurrentMigrations = endpoint.MaxConcurrentMigrations.ToString(); this.UserName = endpoint.Username; this.MailboxPermission = endpoint.MailboxPermission.ToString(); if (endpoint.Authentication != null) { this.Authentication = endpoint.Authentication.ToString(); } }
public MigrationEndpointIdParameter(MigrationEndpoint connector) : this(connector.Identity) { }