private static LogEventId TouchLogEventId(LogTrack?optionalTrack, string name)
 {
     return(optionalTrack.HasValue
         ? LogEventIdFactory.Create(optionalTrack.Value)
         : LogEventIdFactory.Create(name: name));
 }
Example #2
0
 /// <summary>
 /// Convert Microsoft Event Id to Cosmos Logging Event Id
 /// </summary>
 /// <param name="eventId"></param>
 /// <returns></returns>
 public static LogEventId ToEventId(this EventId eventId) => LogEventIdFactory.Create(eventId.Id, eventId.Name);