public void OnNext(EventEntry value)
 {
     if (value != null && (value.Schema.Level == EventLevel.Error || value.Schema.Level == EventLevel.Critical))
     {
         EventSourceRegistrar.RecordSessionError(value);
     }
 }
 public void OnError(Exception error)
 {
     EventSourceRegistrar.RecordSessionError(
         new EventEntry(Guid.Empty, -1, Invariant($"Error in SLAB provider: {error}"), new ReadOnlyCollection <object>(new object[] {}), DateTimeOffset.UtcNow,
                        new EventSchema(-1, Guid.Empty, "SLAB", EventLevel.Error, EventTask.None, "", EventOpcode.Info, "", EventKeywords.None, "", 0, new string[] {})));
 }