Beispiel #1
0
        private void PublishToSubscriber(IAggregateEvent @event, List <Task> tasks, Type type)
        {
            var notification = @event.ToEventPublishedNotification(type);
            var msg          = new CloudQueueMessage(JsonConvert.SerializeObject(notification));

            tasks.Add(this.queue.AddMessageAsync(msg));
        }