/// <summary>
 /// Creates a new instance of <see cref="T:ResponsibleSystem.Common.Domain.Operations.OperationMessage" />
 /// </summary>
 /// <param name="type">Type of message</param>
 /// <param name="appliesTo">String that specifies to what this message applies, e.g. a property name on an entity</param>
 /// <param name="message">Message body or identifier</param>
 public OperationMessage(OperationMessageType type, string appliesTo, string message)
 {
     this.Type                = type;
     this.Message             = message;
     this.AppliesTo           = appliesTo;
     this.mExtendedProperties = new Dictionary <string, string>((IEqualityComparer <string>)StringComparer.OrdinalIgnoreCase);
 }
 /// <summary>
 /// Creates a new instance of a <see cref="OperationMessage"/>
 /// </summary>
 /// <param name="type">The type of the message</param>
 protected OperationMessage(OperationMessageType type)
 {
     Type = type;
 }
 /// <summary>
 /// Creates a new instance of <see cref="T:ResponsibleSystem.Common.Domain.Operations.OperationMessage" />
 /// </summary>
 /// <param name="type">Type of message</param>
 /// <param name="message">Message body or identifier</param>
 public OperationMessage(OperationMessageType type, string message)
     : this(type, string.Empty, message)
 {
 }
Exemple #4
0
 /// <summary>
 /// Creates a new instance of a <see cref="OperationMessage"/>
 /// </summary>
 /// <param name="type">The type of the message</param>
 /// <param name="payload">
 /// The payload of the message
 /// </param>
 protected OperationMessage(OperationMessageType type, T payload)
     : base(type)
 {
     Payload = payload;
 }