private void Initialize()
 {
     _endpoint =  JsonConvert.DeserializeObject<IngestionEndpoint>(
         _httpHelper.Get(_token, $"api/ingestion/endpoint").Result);
     _eventHubClient = EventHubClient.CreateFromConnectionString(_endpoint.ConnectionString, _endpoint.EventHubName);
 }
Exemplo n.º 2
0
 private void Initialize()
 {
     _endpoint = JsonConvert.DeserializeObject <IngestionEndpoint>(
         _httpHelper.Get(_token, $"api/ingestion/endpoint").Result);
     _eventHubClient = EventHubClient.CreateFromConnectionString(_endpoint.ConnectionString, _endpoint.EventHubName);
 }