Exemplo n.º 1
0
 /// <summary>
 /// Initialize a new instance of <see cref="EventGridEventPublisher"/>.
 /// </summary>
 /// <param name="eventGridClient">The client used to publish SendGrid events to an Azure EventGrid topic.</param>
 /// <param name="topicUri">The Azure EventGrid topic endpoint where events will be published.</param>
 /// <param name="settings">Settings used to help build events.</param>
 public EventGridEventPublisher(
     IEventGridClient eventGridClient,
     Uri topicUri,
     EventGridEventPublisherSettings settings = null)
 {
     _eventGridClient = eventGridClient ?? throw new ArgumentNullException(nameof(eventGridClient));
     _topicUri        = topicUri ?? throw new ArgumentNullException(nameof(topicUri));
     _settings        = settings ?? EventGridEventPublisherSettings.Default;
 }
Exemplo n.º 2
0
 public static EventGridEvent ToEventGridEvent(this JObject @event, EventGridEventPublisherSettings settings) =>