internal static void FillAppDomainInfo(IWmiInstance instance)
        {
            AppDomainInfo current = AppDomainInfo.Current;

            instance.SetProperty("Name", current.Name);
            instance.SetProperty("AppDomainId", current.Id);
            instance.SetProperty("PerformanceCounters", PerformanceCounters.Scope.ToString());
            instance.SetProperty("IsDefault", current.IsDefaultAppDomain);
            instance.SetProperty("ProcessId", current.ProcessId);
            instance.SetProperty("TraceLevel", DiagnosticUtility.Level.ToString());
            instance.SetProperty("LogMalformedMessages", MessageLogger.LogMalformedMessages);
            instance.SetProperty("LogMessagesAtServiceLevel", MessageLogger.LogMessagesAtServiceLevel);
            instance.SetProperty("LogMessagesAtTransportLevel", MessageLogger.LogMessagesAtTransportLevel);
            instance.SetProperty("ServiceConfigPath", AspNetEnvironment.Current.ConfigurationPath);
            FillListenersInfo(instance);
        }
        internal static void FillAppDomainInfo(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            AppDomainInfo domainInfo = AppDomainInfo.Current;

            instance.SetProperty(AdministrationStrings.Name, domainInfo.Name);
            instance.SetProperty(AdministrationStrings.AppDomainId, domainInfo.Id);
            instance.SetProperty(AdministrationStrings.PerformanceCounters, PerformanceCounters.Scope.ToString());
            instance.SetProperty(AdministrationStrings.IsDefault, domainInfo.IsDefaultAppDomain);
            instance.SetProperty(AdministrationStrings.ProcessId, domainInfo.ProcessId);
            instance.SetProperty(AdministrationStrings.TraceLevel, DiagnosticUtility.Level.ToString());
            instance.SetProperty(AdministrationStrings.LogMalformedMessages, MessageLogger.LogMalformedMessages);
            instance.SetProperty(AdministrationStrings.LogMessagesAtServiceLevel, MessageLogger.LogMessagesAtServiceLevel);
            instance.SetProperty(AdministrationStrings.LogMessagesAtTransportLevel, MessageLogger.LogMessagesAtTransportLevel);
            instance.SetProperty(AdministrationStrings.ServiceConfigPath, AspNetEnvironment.Current.ConfigurationPath);
            FillListenersInfo(instance);
        }