private void ExtendedEventsReader_OnErrorEvent(ExtendedEventsReader sender, OnErrorEventArgs args) { OnErrorExportDataHandler handlerOnErrorExportData = _onErrorExportData; handlerOnErrorExportData?.Invoke(new OnErrorExportDataEventArgs() { Exception = args.Exception }); }
private void EventLogReader_OnErrorEvent(EventLogReader sender, OnErrorEventArgs args) { OnErrorExportDataHandler handlerOnErrorExportData = OnErrorExportData; handlerOnErrorExportData?.Invoke(new OnErrorExportDataEventArgs() { Exception = args.Exception, SourceData = args.SourceData, Critical = args.Critical }); }
public XEventExportMaster( BeforeExportDataHandler BeforeExportData, AfterExportDataHandler AfterExportData, OnErrorExportDataHandler OnErrorExportData) { _dataToSend = new List <XEventData>(); _portionSize = 0; _beforeExportData = BeforeExportData; _afterExportData = AfterExportData; _onErrorExportData = OnErrorExportData; }