/// <summary> /// Copies all settings into the binding /// </summary> private void CopyConfigurationElement(IRaspEmailBindingElementConfiguration configurationElement) { _receivingAuthenticationMode = configurationElement.ReceivingAuthenticationMode; _sendingAuthenticationMode = configurationElement.SendingAuthenticationMode; _imapFolder = configurationElement.ImapFolder; _pollingInterval = configurationElement.PollingInterval; _receivingPassword = configurationElement.ReceivingPassword; _receivingServerAddress = configurationElement.ReceivingServerAddress; _receivingUserName = configurationElement.ReceivingUserName; _replyAddress = configurationElement.ReplyAddress; _sendingPassword = configurationElement.SendingPassword; _sendingServerAddress = configurationElement.SendingServerAddress; _sendingUserName = configurationElement.SendingUserName; _outboxImplementation = configurationElement.OutboxImplementation; _inboxImplementation = configurationElement.InboxImplementation; _receivingPort = (TcpPort)configurationElement.ReceivingPort; _sendingPort = (TcpPort)configurationElement.SendingPort; }
/// <summary> /// Copies all settings into the binding /// </summary> public void CopyElement(RaspEmailBindingElement original) { _sendingAuthenticationMode = original.SendingAuthenticationMode; _receivingAuthenticationMode = original.ReceivingAuthenticationMode; _imapFolder = original.ImapFolder; _pollingInterval = original.PollingInterval; _receivingPassword = original.ReceivingPassword; _receivingServerAddress = original.ReceivingServerAddress; _receivingUserName = original.ReceivingUserName; _replyAddress = original.ReplyAddress; _sendingPassword = original.SendingPassword; _sendingServerAddress = original.SendingServerAddress; _sendingUserName = original.SendingUserName; _outboxImplementation = original.OutboxImplementation; _inboxImplementation = original.InboxImplementation; _receivingPort = original._receivingPort; _sendingPort = original._sendingPort; }
/// <summary> /// Copies all settings into the binding /// </summary> public void CopyElement(EmailBindingElement original) { _sendingAuthenticationMode = original.SendingAuthenticationMode; _receivingAuthenticationMode = original.ReceivingAuthenticationMode; _imapFolder = original.ImapFolder; _pollingInterval = original.PollingInterval; _receivingPassword = original.ReceivingPassword; _receivingServerAddress = original.ReceivingServerAddress; _receivingUserName = original.ReceivingUserName; _replyAddress = original.ReplyAddress; _sendingPassword = original.SendingPassword; _sendingServerAddress = original.SendingServerAddress; _sendingUserName = original.SendingUserName; _outboxImplementation = original.OutboxImplementation; _inboxImplementation = original.InboxImplementation; _receivingPort = original._receivingPort; _sendingPort = original._sendingPort; _maxReceivedMessageSize = original._maxReceivedMessageSize; if (_maxReceivedMessageSize != 0) { this.MaxReceivedMessageSize = _maxReceivedMessageSize; } }