public void SetFrom(String address, String displayName) { if (address != null) { From = new MessageAddress(address, displayName); } }
protected void SendToNetwork(IMessageData data, IMessageAddress address = null) { IMessage m = new MessageRealization(data, address); ICommand c = new CommandSendMessageNetwork(m); _scenario.Set(c); }
public MessageRealization(IMessageData data, IMessageAddress address = null) { _data = data; if (address == null) { _address = new MessageAddress(); } else { _address = address; } }
public static MailboxAddress AsMailboxAddress(this IMessageAddress address) { return(new MailboxAddress(address.DisplayName, address.Address)); }