コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationEventMessage" /> class.
 /// </summary>
 /// <param name="applicationEvent">
 /// The application event.
 /// </param>
 /// <param name="correlationIdentifier">
 /// A unique identifier that is assigned to related messages.
 /// </param>
 /// <param name="identifier">
 /// A unique identifier for the message.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="applicationEvent" /> is <see langword="null" />.
 /// </exception>
 /// <exception cref="ArgumentOutOfRangeException">
 /// <paramref name="correlationIdentifier" /> is equal to <see cref="Guid.Empty" /> -or- <paramref name="identifier" /> is
 /// equal to <see cref="Guid.Empty" />.
 /// </exception>
 public ApplicationEventMessage(ApplicationEvent applicationEvent, Guid correlationIdentifier, Guid identifier)
     : base(correlationIdentifier, identifier)
 {
     ApplicationEvent = applicationEvent.RejectIf().IsNull(nameof(applicationEvent));
 }