Esempio n. 1
0
 private void Send(AnObjectEvent anEvent)
 {
     var serializedEvent = new JavaScriptSerializer().Serialize(anEvent);
     var message = new CloudQueueMessage(serializedEvent);
     _queue.AddMessage(message);
 }
Esempio n. 2
0
 public void PublishChange(AnObject anObject)
 {
     var anEvent = new AnObjectEvent
     {
         AnObject = anObject,
         Type = AnObjectEventType.Change
     };
     Send(anEvent);
 }
Esempio n. 3
0
 public void PublishDelete(AnObject anObject)
 {
     var anEvent = new AnObjectEvent
     {
         AnObject = anObject,
         Type = AnObjectEventType.Delete
     };
     Send(anEvent);
 }
Esempio n. 4
0
 public void PublishAdd(AnObject value)
 {
     var anEvent = new AnObjectEvent
         {
         AnObject = value,
         Type = AnObjectEventType.Add
     };
     Send(anEvent);
 }