Ejemplo n.º 1
0
        public void SendEvent(AsyncEventTypes eventType, int eventId)
        {
            var newFile = Path.Combine(QueueDir().FullName, $"{Guid.NewGuid().ToString()}.json");
            var json    = JsonConvert.SerializeObject(new AsyncQueueItem()
            {
                AmbientContext = Context, // <== passing along the ambient context
                EventType      = eventType,
                EventId        = eventId
            });

            File.WriteAllText(newFile, json);
        }
Ejemplo n.º 2
0
 public void SendEvent(AsyncEventTypes eventType, int eventId)
 {
     MockData.AsyncCalled = true;
 }