Пример #1
0
        private static EventData CreateEventData(TerminalData data)
        {
            var dataAsJson = JsonConvert.SerializeObject(data);
            var eventData  = new EventData(Encoding.UTF8.GetBytes(dataAsJson));

            return(eventData);
        }
Пример #2
0
 public async Task SendDataAsync(TerminalData data)
 {
     EventData eventData = CreateEventData(data);
     await _eventHubClient.SendAsync(eventData);
 }
 public Task SendDataAsync(TerminalData data)
 {
     return(Task.CompletedTask);
 }