/// <summary> /// Initalizes a list representing a set of computer/application related data that can be diagnosed. /// This includes: /// 1. Machine Information, 2. Environment variables. 3. Drives, 4. AppDomain ( dlls loaded )., etc. /// </summary> /// <param name="include">True to include specified groups.</param> /// <param name="groups">Array with groups.</param> public DiagnosticsService(bool include, params DiagnosticGroup[] groups) : this() { var groupsList = DiagnosticsHelper.ConvertEnumGroupsToStringList(groups); FilterOn(include, groupsList); }
/// <summary> /// Filter the diagnostics on the supplied list of groups /// representing the areas that can be diagnosed. /// </summary> /// <param name="include">Whether or the the groups supplied should be /// <param name="groups">Array with groups.</param> /// included, false value representing exclusion.</param> public void FilterOn(bool include, params DiagnosticGroup[] groups) { var groupsList = DiagnosticsHelper.ConvertEnumGroupsToStringList(groups); FilterOn(include, groupsList); }