public async Task ReportEventAsync(SystemEvent @event) { if (!string.IsNullOrWhiteSpace(OverrideApplicationNameWith)) { @event.PartitionKey = @event.AppInfo.ApplicationName = OverrideApplicationNameWith; } var toCosmos = SendEventToCosmos(@event); var toAnalyzer = EventClient.SendAsync(new EventData(Encoding.UTF8.GetBytes(Serialise(@event)))); await toCosmos; await toAnalyzer; }