コード例 #1
0
        private void ExtendedEventsReader_OnErrorEvent(ExtendedEventsReader sender, OnErrorEventArgs args)
        {
            OnErrorExportDataHandler handlerOnErrorExportData = _onErrorExportData;

            handlerOnErrorExportData?.Invoke(new OnErrorExportDataEventArgs()
            {
                Exception = args.Exception
            });
        }
コード例 #2
0
        private void EventLogReader_OnErrorEvent(EventLogReader sender, OnErrorEventArgs args)
        {
            OnErrorExportDataHandler handlerOnErrorExportData = OnErrorExportData;

            handlerOnErrorExportData?.Invoke(new OnErrorExportDataEventArgs()
            {
                Exception  = args.Exception,
                SourceData = args.SourceData,
                Critical   = args.Critical
            });
        }