bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            string property = instance.GetProperty("Service") as string;
            string str2     = instance.GetProperty("Endpoint") as string;

            return(!string.IsNullOrEmpty(property) && !string.IsNullOrEmpty(str2));
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            string serviceRef  = instance.GetProperty(AdministrationStrings.Service) as string;
            string endpointRef = instance.GetProperty(AdministrationStrings.Endpoint) as string;

            return(!String.IsNullOrEmpty(serviceRef) && !String.IsNullOrEmpty(endpointRef));
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            string serviceRef = instance.GetProperty(AdministrationStrings.Service) as string;
            string endpointRef = instance.GetProperty(AdministrationStrings.Endpoint) as string;

            return !String.IsNullOrEmpty(serviceRef) && !String.IsNullOrEmpty(endpointRef);
        }
Ejemplo n.º 4
0
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            string serviceRef = instance.GetProperty(AdministrationStrings.Service) as string;
            string appDomainInfoRef = instance.GetProperty(AdministrationStrings.AppDomainInfo) as string;

            return !String.IsNullOrEmpty(serviceRef) && !String.IsNullOrEmpty(appDomainInfoRef);
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            string serviceRef = instance.GetProperty(AdministrationStrings.Service) as string;
            string appDomainInfoRef = instance.GetProperty(AdministrationStrings.AppDomainInfo) as string;

            return !String.IsNullOrEmpty(serviceRef) && !String.IsNullOrEmpty(appDomainInfoRef);
        }
        bool IWmiProvider.PutInstance(IWmiInstance instance)
        {
            bool flag = false;

            if ((((int)instance.GetProperty("ProcessId")) != AppDomainInfo.Current.ProcessId) || !string.Equals((string)instance.GetProperty("Name"), AppDomainInfo.Current.Name, StringComparison.Ordinal))
            {
                return(flag);
            }
            try
            {
                SourceLevels newValue = (SourceLevels)Enum.Parse(typeof(SourceLevels), (string)instance.GetProperty("TraceLevel"));
                if (DiagnosticUtility.Level != newValue)
                {
                    if (DiagnosticUtility.ShouldTraceVerbose)
                    {
                        TraceUtility.TraceEvent(TraceEventType.Verbose, 0x10001, System.ServiceModel.SR.GetString("TraceCodeWmiPut"), new WmiPutTraceRecord("DiagnosticTrace.Level", DiagnosticUtility.Level, newValue), instance, null);
                    }
                    DiagnosticUtility.Level = newValue;
                }
                bool property = (bool)instance.GetProperty("LogMalformedMessages");
                if (MessageLogger.LogMalformedMessages != property)
                {
                    if (DiagnosticUtility.ShouldTraceVerbose)
                    {
                        TraceUtility.TraceEvent(TraceEventType.Verbose, 0x10001, System.ServiceModel.SR.GetString("TraceCodeWmiPut"), new WmiPutTraceRecord("MessageLogger.LogMalformedMessages", MessageLogger.LogMalformedMessages, property), instance, null);
                    }
                    MessageLogger.LogMalformedMessages = property;
                }
                bool flag3 = (bool)instance.GetProperty("LogMessagesAtServiceLevel");
                if (MessageLogger.LogMessagesAtServiceLevel != flag3)
                {
                    if (DiagnosticUtility.ShouldTraceVerbose)
                    {
                        TraceUtility.TraceEvent(TraceEventType.Verbose, 0x10001, System.ServiceModel.SR.GetString("TraceCodeWmiPut"), new WmiPutTraceRecord("MessageLogger.LogMessagesAtServiceLevel", MessageLogger.LogMessagesAtServiceLevel, flag3), instance, null);
                    }
                    MessageLogger.LogMessagesAtServiceLevel = flag3;
                }
                bool flag4 = (bool)instance.GetProperty("LogMessagesAtTransportLevel");
                if (MessageLogger.LogMessagesAtTransportLevel != flag4)
                {
                    if (DiagnosticUtility.ShouldTraceVerbose)
                    {
                        TraceUtility.TraceEvent(TraceEventType.Verbose, 0x10001, System.ServiceModel.SR.GetString("TraceCodeWmiPut"), new WmiPutTraceRecord("MessageLogger.LogMessagesAtTransportLevel", MessageLogger.LogMessagesAtTransportLevel, flag4), instance, null);
                    }
                    MessageLogger.LogMessagesAtTransportLevel = flag4;
                }
            }
            catch (ArgumentException)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WbemInvalidParameterException());
            }
            return(true);
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;
            if ((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId
                && String.Equals((string)instance.GetProperty(AdministrationStrings.Name), AppDomainInfo.Current.Name, StringComparison.Ordinal))
            {
                FillAppDomainInfo(instance);
                bFound = true;
            }

            return bFound;
        }
Ejemplo n.º 8
0
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;

            if ((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId &&
                String.Equals((string)instance.GetProperty(AdministrationStrings.Name), AppDomainInfo.Current.Name, StringComparison.Ordinal))
            {
                FillAppDomainInfo(instance);
                bFound = true;
            }

            return(bFound);
        }
        private string GetOperationCounterInstanceName(string operationName, IWmiInstance endpointInstance)
        {
            string property     = (string)endpointInstance.GetProperty("ListenUri");
            string contractName = (string)endpointInstance.GetProperty("ContractName");

            System.ServiceModel.Administration.EndpointInfo info = this.FindEndpoint(property, contractName);
            string str3 = string.Empty;

            if (PerformanceCounters.PerformanceCountersEnabled && (info != null))
            {
                str3 = OperationPerformanceCountersBase.CreateFriendlyInstanceName(info.ServiceName, info.Contract.Name, operationName, info.Address.AbsoluteUri.ToUpperInvariant());
            }
            return(str3);
        }
 bool IWmiProvider.GetInstance(IWmiInstance instance)
 {
     if (((int)instance.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId)
     {
         foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
         {
             if (string.Equals((string)instance.GetProperty("DistinguishedName"), info.DistinguishedName, StringComparison.OrdinalIgnoreCase))
             {
                 this.FillServiceInfo(info, instance);
                 return(true);
             }
         }
     }
     return(false);
 }
Ejemplo n.º 11
0
        string GetOperationCounterInstanceName(string operationName, IWmiInstance endpointInstance)
        {
            Fx.Assert(null != endpointInstance, "");
            string       address      = (string)endpointInstance.GetProperty(AdministrationStrings.ListenUri);
            string       contractName = (string)endpointInstance.GetProperty(AdministrationStrings.ContractName);
            EndpointInfo endpointInfo = FindEndpoint(address, contractName);

            string result = String.Empty;

            if (PerformanceCounters.PerformanceCountersEnabled && null != endpointInfo)
            {
                result = OperationPerformanceCounters.GetFriendlyInstanceName(endpointInfo.ServiceName, endpointInfo.Contract.Name, operationName, endpointInfo.Address.AbsoluteUri.ToUpperInvariant());
            }

            return(result);
        }
        bool IWmiProvider.GetInstance(IWmiInstance contract)
        {
            bool flag = false;

            if ((((int)contract.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId) && (((int)contract.GetProperty("AppDomainId")) == AppDomainInfo.Current.Id))
            {
                ContractDescription description;
                string property = (string)contract.GetProperty("Name");
                UpdateContracts();
                if (knownContracts.TryGetValue(property, out description))
                {
                    flag = true;
                    FillContract(contract, description);
                }
            }
            return(flag);
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            bool flag = false;

            if (this.OwnInstance(instance))
            {
                string property     = (string)instance.GetProperty("ListenUri");
                string contractName = (string)instance.GetProperty("ContractName");
                System.ServiceModel.Administration.EndpointInfo endpoint = this.FindEndpoint(property, contractName);
                if (endpoint != null)
                {
                    FillEndpointInfo(endpoint, instance);
                    flag = true;
                }
            }
            return(flag);
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;
            if ((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId)
            {
                foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
                {
                    if (String.Equals((string)instance.GetProperty(AdministrationStrings.DistinguishedName), info.DistinguishedName, StringComparison.OrdinalIgnoreCase))
                    {
                        FillServiceInfo(info, instance);
                        bFound = true;
                        break;
                    }
                }
            }

            return bFound;
        }
Ejemplo n.º 15
0
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;

            if ((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId)
            {
                foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
                {
                    if (String.Equals((string)instance.GetProperty(AdministrationStrings.DistinguishedName), info.DistinguishedName, StringComparison.OrdinalIgnoreCase))
                    {
                        FillServiceInfo(info, instance);
                        bFound = true;
                        break;
                    }
                }
            }

            return(bFound);
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            bool flag = false;

            if ((((int)instance.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId) && string.Equals((string)instance.GetProperty("Name"), AppDomainInfo.Current.Name, StringComparison.Ordinal))
            {
                FillAppDomainInfo(instance);
                flag = true;
            }
            return(flag);
        }
Ejemplo n.º 17
0
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;

            if (OwnInstance(instance))
            {
                string       address      = (string)instance.GetProperty(AdministrationStrings.ListenUri);
                string       contractName = (string)instance.GetProperty(AdministrationStrings.ContractName);
                EndpointInfo endpointInfo = FindEndpoint(address, contractName);

                if (null != endpointInfo)
                {
                    FillEndpointInfo(endpointInfo, instance);
                    bFound = true;
                }
            }

            return(bFound);
        }
        bool IWmiProvider.GetInstance(IWmiInstance contract)
        {
            Fx.Assert(null != contract, "");
            bool bFound = false;

            if ((int)contract.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId &&
                (int)contract.GetProperty(AdministrationStrings.AppDomainId) == AppDomainInfo.Current.Id)
            {
                string contractName = (string)contract.GetProperty(AdministrationStrings.Name);

                ContractDescription contractDescription;
                UpdateContracts();
                if (ContractInstanceProvider.knownContracts.TryGetValue(contractName, out contractDescription))
                {
                    bFound = true;
                    FillContract(contract, contractDescription);
                }
            }

            return(bFound);
        }
 bool OwnInstance(IWmiInstance instance)
 {
     return (int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId
         && (int)instance.GetProperty(AdministrationStrings.AppDomainId) == AppDomainInfo.Current.Id;
 }
        string GetOperationCounterInstanceName(string operationName, IWmiInstance endpointInstance)
        {
            Fx.Assert(null != endpointInstance, "");
            string address = (string)endpointInstance.GetProperty(AdministrationStrings.ListenUri);
            string contractName = (string)endpointInstance.GetProperty(AdministrationStrings.ContractName);
            EndpointInfo endpointInfo = FindEndpoint(address, contractName);

            string result = String.Empty;

            if (PerformanceCounters.PerformanceCountersEnabled && null != endpointInfo)
            {
                result = OperationPerformanceCounters.CreateFriendlyInstanceName(endpointInfo.ServiceName, endpointInfo.Contract.Name, operationName, endpointInfo.Address.AbsoluteUri.ToUpperInvariant());
            }

            return result;
        }
        bool IWmiProvider.GetInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;
            if (OwnInstance(instance))
            {
                string address = (string)instance.GetProperty(AdministrationStrings.ListenUri);
                string contractName = (string)instance.GetProperty(AdministrationStrings.ContractName);
                EndpointInfo endpointInfo = FindEndpoint(address, contractName);

                if (null != endpointInfo)
                {
                    FillEndpointInfo(endpointInfo, instance);
                    bFound = true;
                }
            }

            return bFound;
        }
 bool IWmiProvider.GetInstance(IWmiInstance instance)
 {
     string property = instance.GetProperty("Service") as string;
     string str2 = instance.GetProperty("Endpoint") as string;
     return (!string.IsNullOrEmpty(property) && !string.IsNullOrEmpty(str2));
 }
 private bool OwnInstance(IWmiInstance instance)
 {
     return((((int)instance.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId) && (((int)instance.GetProperty("AppDomainId")) == AppDomainInfo.Current.Id));
 }
        bool IWmiProvider.GetInstance(IWmiInstance contract)
        {
            Fx.Assert(null != contract, "");
            bool bFound = false;
            if ((int)contract.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId
                && (int)contract.GetProperty(AdministrationStrings.AppDomainId) == AppDomainInfo.Current.Id)
            {
                string contractName = (string)contract.GetProperty(AdministrationStrings.Name);

                ContractDescription contractDescription;
                UpdateContracts();
                if (ContractInstanceProvider.knownContracts.TryGetValue(contractName, out contractDescription))
                {
                    bFound = true;
                    FillContract(contract, contractDescription);
                }
            }

            return bFound;
        }
 private bool OwnInstance(IWmiInstance instance)
 {
     return ((((int) instance.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId) && (((int) instance.GetProperty("AppDomainId")) == AppDomainInfo.Current.Id));
 }
 bool IWmiProvider.GetInstance(IWmiInstance instance)
 {
     if (((int) instance.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId)
     {
         foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
         {
             if (string.Equals((string) instance.GetProperty("DistinguishedName"), info.DistinguishedName, StringComparison.OrdinalIgnoreCase))
             {
                 this.FillServiceInfo(info, instance);
                 return true;
             }
         }
     }
     return false;
 }
 private string GetOperationCounterInstanceName(string operationName, IWmiInstance endpointInstance)
 {
     string property = (string) endpointInstance.GetProperty("ListenUri");
     string contractName = (string) endpointInstance.GetProperty("ContractName");
     System.ServiceModel.Administration.EndpointInfo info = this.FindEndpoint(property, contractName);
     string str3 = string.Empty;
     if (PerformanceCounters.PerformanceCountersEnabled && (info != null))
     {
         str3 = OperationPerformanceCountersBase.CreateFriendlyInstanceName(info.ServiceName, info.Contract.Name, operationName, info.Address.AbsoluteUri.ToUpperInvariant());
     }
     return str3;
 }
Ejemplo n.º 28
0
 bool OwnInstance(IWmiInstance instance)
 {
     return((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId &&
            (int)instance.GetProperty(AdministrationStrings.AppDomainId) == AppDomainInfo.Current.Id);
 }
 bool IWmiProvider.GetInstance(IWmiInstance instance)
 {
     bool flag = false;
     if (this.OwnInstance(instance))
     {
         string property = (string) instance.GetProperty("ListenUri");
         string contractName = (string) instance.GetProperty("ContractName");
         System.ServiceModel.Administration.EndpointInfo endpoint = this.FindEndpoint(property, contractName);
         if (endpoint != null)
         {
             FillEndpointInfo(endpoint, instance);
             flag = true;
         }
     }
     return flag;
 }
        bool IWmiProvider.PutInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;
            if ((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId
                && String.Equals((string)instance.GetProperty(AdministrationStrings.Name), AppDomainInfo.Current.Name, StringComparison.Ordinal))
            {
                try
                {
                    SourceLevels newLevel = (SourceLevels)Enum.Parse(typeof(SourceLevels), (string)instance.GetProperty(AdministrationStrings.TraceLevel));
                    if (DiagnosticUtility.Level != newLevel)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                new WmiPutTraceRecord("DiagnosticTrace.Level",
                                DiagnosticUtility.Level,
                                newLevel), instance, null);
                        }
                        DiagnosticUtility.Level = newLevel;
                    }

                    bool logMalformedMessages = (bool)instance.GetProperty(AdministrationStrings.LogMalformedMessages);
                    if (MessageLogger.LogMalformedMessages != logMalformedMessages)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                new WmiPutTraceRecord("MessageLogger.LogMalformedMessages",
                                MessageLogger.LogMalformedMessages,
                                logMalformedMessages), instance, null);
                        }
                        MessageLogger.LogMalformedMessages = logMalformedMessages;
                    }

                    bool logMessagesAtServiceLevel = (bool)instance.GetProperty(AdministrationStrings.LogMessagesAtServiceLevel);
                    if (MessageLogger.LogMessagesAtServiceLevel != logMessagesAtServiceLevel)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                new WmiPutTraceRecord("MessageLogger.LogMessagesAtServiceLevel",
                                MessageLogger.LogMessagesAtServiceLevel,
                                logMessagesAtServiceLevel), instance, null);
                        }
                        MessageLogger.LogMessagesAtServiceLevel = logMessagesAtServiceLevel;
                    }

                    bool logMessagesAtTransportLevel = (bool)instance.GetProperty(AdministrationStrings.LogMessagesAtTransportLevel);
                    if (MessageLogger.LogMessagesAtTransportLevel != logMessagesAtTransportLevel)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                new WmiPutTraceRecord("MessageLogger.LogMessagesAtTransportLevel",
                                MessageLogger.LogMessagesAtTransportLevel,
                                logMessagesAtTransportLevel), instance, null);
                        }
                        MessageLogger.LogMessagesAtTransportLevel = logMessagesAtTransportLevel;
                    }
                }
                catch (ArgumentException)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WbemInvalidParameterException());
                }
                bFound = true;
            }

            return bFound;
        }
 bool IWmiProvider.GetInstance(IWmiInstance contract)
 {
     bool flag = false;
     if ((((int) contract.GetProperty("ProcessId")) == AppDomainInfo.Current.ProcessId) && (((int) contract.GetProperty("AppDomainId")) == AppDomainInfo.Current.Id))
     {
         ContractDescription description;
         string property = (string) contract.GetProperty("Name");
         UpdateContracts();
         if (knownContracts.TryGetValue(property, out description))
         {
             flag = true;
             FillContract(contract, description);
         }
     }
     return flag;
 }
Ejemplo n.º 32
0
        bool IWmiProvider.PutInstance(IWmiInstance instance)
        {
            Fx.Assert(null != instance, "");
            bool bFound = false;

            if ((int)instance.GetProperty(AdministrationStrings.ProcessId) == AppDomainInfo.Current.ProcessId &&
                String.Equals((string)instance.GetProperty(AdministrationStrings.Name), AppDomainInfo.Current.Name, StringComparison.Ordinal))
            {
                try
                {
                    SourceLevels newLevel = (SourceLevels)Enum.Parse(typeof(SourceLevels), (string)instance.GetProperty(AdministrationStrings.TraceLevel));
                    if (DiagnosticUtility.Level != newLevel)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                                    new WmiPutTraceRecord("DiagnosticTrace.Level",
                                                                          DiagnosticUtility.Level,
                                                                          newLevel), instance, null);
                        }
                        DiagnosticUtility.Level = newLevel;
                    }

                    bool logMalformedMessages = (bool)instance.GetProperty(AdministrationStrings.LogMalformedMessages);
                    if (MessageLogger.LogMalformedMessages != logMalformedMessages)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                                    new WmiPutTraceRecord("MessageLogger.LogMalformedMessages",
                                                                          MessageLogger.LogMalformedMessages,
                                                                          logMalformedMessages), instance, null);
                        }
                        MessageLogger.LogMalformedMessages = logMalformedMessages;
                    }

                    bool logMessagesAtServiceLevel = (bool)instance.GetProperty(AdministrationStrings.LogMessagesAtServiceLevel);
                    if (MessageLogger.LogMessagesAtServiceLevel != logMessagesAtServiceLevel)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                                    new WmiPutTraceRecord("MessageLogger.LogMessagesAtServiceLevel",
                                                                          MessageLogger.LogMessagesAtServiceLevel,
                                                                          logMessagesAtServiceLevel), instance, null);
                        }
                        MessageLogger.LogMessagesAtServiceLevel = logMessagesAtServiceLevel;
                    }

                    bool logMessagesAtTransportLevel = (bool)instance.GetProperty(AdministrationStrings.LogMessagesAtTransportLevel);
                    if (MessageLogger.LogMessagesAtTransportLevel != logMessagesAtTransportLevel)
                    {
                        if (DiagnosticUtility.ShouldTraceVerbose)
                        {
                            TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
                                                    new WmiPutTraceRecord("MessageLogger.LogMessagesAtTransportLevel",
                                                                          MessageLogger.LogMessagesAtTransportLevel,
                                                                          logMessagesAtTransportLevel), instance, null);
                        }
                        MessageLogger.LogMessagesAtTransportLevel = logMessagesAtTransportLevel;
                    }
                }
                catch (ArgumentException)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WbemInvalidParameterException());
                }
                bFound = true;
            }

            return(bFound);
        }