/// <summary> /// Initializes a new instance of the <see cref="MessageExpression"/> class. /// </summary> /// <param name="payload">The type of payload.</param> /// <param name="expression">The expression.</param> public MessageExpression(MessageExpressionPayloads payload, byte[] expression) { SerializedExpression = expression; PayLoad = payload; }
/// <summary> /// Initializes a new instance of the <see cref="MessageExpression" /> class. /// </summary> /// <param name="payload">The type of payload.</param> /// <param name="method">The method.</param> public MessageExpression(MessageExpressionPayloads payload, Expression <Action <IReceivedMessage <MessageExpression>, IWorkerNotification> > method) { Method = method; PayLoad = payload; }