Skip to content

Instantly share code, notes, and snippets.

View zleao's full-sized avatar

José Pereira zleao

View GitHub Profile
@zleao
zleao / zoft.NotificationService.PublishExamples.cs
Created January 10, 2021 15:05
Examples of Publish using zoft.NotificationService
// OneWay Publish
// Publish an one-way message for default or specified context
NotificationService.PublishAsync(myMessage);
NotificationService.PublishAsync(myMessage, "myContext");
// Adds a message to the pending notification queue
NotificationService.DelayedPublishAsync(myMessage);
// Adds a message to the pending notification queue for the specified context
NotificationService.DelayedPublishAsync(myMessage, "myContext");