public PowerofficeQueueMessage( PowerofficeQueueAction action, string serializedPayload) { Action = action; SerializedPayload = serializedPayload; }
private async Task EnqueueActions( PowerofficeQueueAction action, IEnumerable <BasePowerofficePayload> payloads) { foreach (var payload in payloads) { var queueMessage = new PowerofficeQueueMessage(action, payload); await PowerofficeQueue.Enqueue(queueMessage); } }
public PowerofficeQueueMessage( PowerofficeQueueAction action, BasePowerofficePayload payload) : this(action, JsonConvert.SerializeObject(payload)) { }