public void ReportEvent(SystemEvent @event) { var task = Task.Run(async() => { await ReportEventAsync(@event); }); task.Wait(); }
private async Task SendEventToCosmos(SystemEvent @event) { await CosmosClient.CreateDocumentAsync(CollectionUri, @event); }