public PowerofficeQueueMessage(
     PowerofficeQueueAction action,
     string serializedPayload)
 {
     Action            = action;
     SerializedPayload = serializedPayload;
 }
예제 #2
0
 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))
 {
 }