/// <summary> /// Finalises the event info by adding final metadata /// </summary> /// <param name="eventInfo">The event info to finalise</param> /// <param name="error">The responsible event</param> /// <param name="lastException">The root exception of the event info</param> private void FinaliseEventInfo(EventInfo eventInfo, Event error, Exception lastException) { var expMetaData = new Metadata(); expMetaData.AddToTab(ExpDetailsTabName, "runtimeEnding", error.IsRuntimeEnding); if (lastException.HelpLink != null) { expMetaData.AddToTab(ExpDetailsTabName, "helpLink", lastException.HelpLink); } if (lastException.Source != null) { expMetaData.AddToTab(ExpDetailsTabName, "source", lastException.Source); } if (lastException.TargetSite != null) { expMetaData.AddToTab(ExpDetailsTabName, "targetSite", lastException.TargetSite); } var metaData = Metadata.CombineMetadata(Config.Metadata, error.Metadata, expMetaData); metaData.FilterEntries(Config.IsEntryFiltered); eventInfo.Metadata = metaData.MetadataStore; }
/// <summary> /// Finalises the event info by adding final metadata /// </summary> /// <param name="eventInfo">The event info to finalise</param> /// <param name="error">The responsible event</param> /// <param name="lastException">The root exception of the event info</param> private void FinaliseEventInfo(EventInfo eventInfo, Event error, Exception lastException) { var expMetaData = new Metadata(); expMetaData.AddToTab(ExpDetailsTabName, "runtimeEnding", error.IsRuntimeEnding); if (lastException.HelpLink != null) expMetaData.AddToTab(ExpDetailsTabName, "helpLink", lastException.HelpLink); if (lastException.Source != null) expMetaData.AddToTab(ExpDetailsTabName, "source", lastException.Source); if (lastException.TargetSite != null) expMetaData.AddToTab(ExpDetailsTabName, "targetSite", lastException.TargetSite); var metaData = Metadata.CombineMetadata(Config.Metadata, error.Metadata, expMetaData); metaData.FilterEntries(Config.IsEntryFiltered); eventInfo.Metadata = metaData.MetadataStore; }
public void AddToTab(string tabName, string key, object value) { metadata.AddToTab(tabName, key, value); }