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