public MessageEnvelope(IMessage message, MessageEnvelopeTimestamp timestamp, String version) { if (version != MessageEnvelope.DefaultVersion) { throw Assert.Exception(new FormatException($"Invalid message version: { version }")); } this.Message = message; this.Timestamp = timestamp; this.Version = version; }
public MessageEnvelope(IMessage message, MessageEnvelopeTimestamp timestamp) { this.Message = message; this.Timestamp = timestamp; }