internal static EventHubDataPublisher GetEventHubClient(string connectionString, string eventHubName, bool createEventHubIfItDoesNotExist)
        {
            var t = new EventHubDataPublisher(connectionString, eventHubName);

            if (createEventHubIfItDoesNotExist)
            {
                t.CreateIfNotExists();
            }

            return(t);
        }
Exemplo n.º 2
0
 public SendStringToEventHub(string eventHubonnectionString, string eventHubName, bool createEventHubIfItDoesNotExist = true)
 {
     eventHubClient = EventHubPublishOperator <string> .GetEventHubClient(eventHubonnectionString, eventHubName, createEventHubIfItDoesNotExist);
 }
Exemplo n.º 3
0
 internal EventHubBaseOperator(EventHubDataPublisher eventHubClient)
 {
     this.EventHubClient = eventHubClient;
     this.ID             = 0;
 }