void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     Fx.Assert(null != instances, "");
     IWmiInstance instance = instances.NewInstance(null);
     FillAppDomainInfo(instance);
     instances.AddInstance(instance);
 }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            IWmiInstance instance = instances.NewInstance(null);

            FillAppDomainInfo(instance);
            instances.AddInstance(instance);
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            IWmiInstance instance = instances.NewInstance(null);

            FillAppDomainInfo(instance);
            instances.AddInstance(instance);
        }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         IWmiInstance inst = instances.NewInstance(null);
         inst.SetProperty("AppDomainInfo", AppDomainInstanceProvider.GetReference());
         inst.SetProperty("Service", ServiceInstanceProvider.GetReference(info));
         instances.AddInstance(inst);
     }
 }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         IWmiInstance inst = instances.NewInstance(null);
         inst.SetProperty("AppDomainInfo", AppDomainInstanceProvider.GetReference());
         inst.SetProperty("Service", ServiceInstanceProvider.GetReference(info));
         instances.AddInstance(inst);
     }
 }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            int processId = AppDomainInfo.Current.ProcessId;

            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                IWmiInstance instance = instances.NewInstance(null);
                instance.SetProperty("DistinguishedName", info.DistinguishedName);
                instance.SetProperty("ProcessId", processId);
                this.FillServiceInfo(info, instance);
                instances.AddInstance(instance);
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                IWmiInstance instance = instances.NewInstance(null);

                instance.SetProperty(AdministrationStrings.AppDomainInfo, AppDomainInstanceProvider.GetReference());
                instance.SetProperty(AdministrationStrings.Service, ServiceInstanceProvider.GetReference(info));

                instances.AddInstance(instance);
            }
        }
Example #8
0
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                IWmiInstance instance = instances.NewInstance(null);

                instance.SetProperty(AdministrationStrings.AppDomainInfo, AppDomainInstanceProvider.GetReference());
                instance.SetProperty(AdministrationStrings.Service, ServiceInstanceProvider.GetReference(info));

                instances.AddInstance(instance);
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            int processId = AppDomainInfo.Current.ProcessId;
            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                IWmiInstance instance = instances.NewInstance(null);
                instance.SetProperty(AdministrationStrings.DistinguishedName, info.DistinguishedName);
                instance.SetProperty(AdministrationStrings.ProcessId, processId);

                FillServiceInfo(info, instance);
                instances.AddInstance(instance);
            }
        }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         string reference = ServiceInstanceProvider.GetReference(info);
         foreach (EndpointInfo info2 in info.Endpoints)
         {
             IWmiInstance inst = instances.NewInstance(null);
             string str2 = EndpointInstanceProvider.EndpointReference(info2.ListenUri, info2.Contract.Name);
             inst.SetProperty("Endpoint", str2);
             inst.SetProperty("Service", reference);
             instances.AddInstance(inst);
         }
     }
 }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         string reference = ServiceInstanceProvider.GetReference(info);
         foreach (EndpointInfo info2 in info.Endpoints)
         {
             IWmiInstance inst = instances.NewInstance(null);
             string       str2 = EndpointInstanceProvider.EndpointReference(info2.ListenUri, info2.Contract.Name);
             inst.SetProperty("Endpoint", str2);
             inst.SetProperty("Service", reference);
             instances.AddInstance(inst);
         }
     }
 }
Example #12
0
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            int processId = AppDomainInfo.Current.ProcessId;

            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                IWmiInstance instance = instances.NewInstance(null);
                instance.SetProperty(AdministrationStrings.DistinguishedName, info.DistinguishedName);
                instance.SetProperty(AdministrationStrings.ProcessId, processId);

                FillServiceInfo(info, instance);
                instances.AddInstance(instance);
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            int processId = AppDomainInfo.Current.ProcessId;
            int id        = AppDomainInfo.Current.Id;

            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                foreach (System.ServiceModel.Administration.EndpointInfo info2 in info.Endpoints)
                {
                    IWmiInstance instance = instances.NewInstance(null);
                    instance.SetProperty("ProcessId", processId);
                    instance.SetProperty("AppDomainId", id);
                    FillEndpointInfo(info2, instance);
                    instances.AddInstance(instance);
                }
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            int processId = AppDomainInfo.Current.ProcessId;
            int id        = AppDomainInfo.Current.Id;

            lock (knownContracts)
            {
                UpdateContracts();
                foreach (ContractDescription description in knownContracts.Values)
                {
                    IWmiInstance contract = instances.NewInstance(null);
                    contract.SetProperty("ProcessId", processId);
                    contract.SetProperty("AppDomainId", id);
                    FillContract(contract, description);
                    instances.AddInstance(contract);
                }
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                string serviceRef = ServiceInstanceProvider.GetReference(info);

                foreach (EndpointInfo endpointInfo in info.Endpoints)
                {
                    IWmiInstance instance = instances.NewInstance(null);

                    string endpointRef = EndpointInstanceProvider.EndpointReference(endpointInfo.ListenUri, endpointInfo.Contract.Name);
                    instance.SetProperty(AdministrationStrings.Endpoint, endpointRef);
                    instance.SetProperty(AdministrationStrings.Service, serviceRef);

                    instances.AddInstance(instance);
                }
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
            {
                string serviceRef = ServiceInstanceProvider.GetReference(info);

                foreach (EndpointInfo endpointInfo in info.Endpoints)
                {
                    IWmiInstance instance = instances.NewInstance(null);

                    string endpointRef = EndpointInstanceProvider.EndpointReference(endpointInfo.ListenUri, endpointInfo.Contract.Name);
                    instance.SetProperty(AdministrationStrings.Endpoint, endpointRef);
                    instance.SetProperty(AdministrationStrings.Service, serviceRef);

                    instances.AddInstance(instance);
                }
            }
        }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            int processId   = AppDomainInfo.Current.ProcessId;
            int appDomainId = AppDomainInfo.Current.Id;

            lock (ContractInstanceProvider.knownContracts)
            {
                UpdateContracts();
                foreach (ContractDescription contract in ContractInstanceProvider.knownContracts.Values)
                {
                    IWmiInstance instance = instances.NewInstance(null);

                    instance.SetProperty(AdministrationStrings.ProcessId, processId);
                    instance.SetProperty(AdministrationStrings.AppDomainId, appDomainId);

                    FillContract(instance, contract);

                    instances.AddInstance(instance);
                }
            }
        }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     int processId = AppDomainInfo.Current.ProcessId;
     int id = AppDomainInfo.Current.Id;
     lock (knownContracts)
     {
         UpdateContracts();
         foreach (ContractDescription description in knownContracts.Values)
         {
             IWmiInstance contract = instances.NewInstance(null);
             contract.SetProperty("ProcessId", processId);
             contract.SetProperty("AppDomainId", id);
             FillContract(contract, description);
             instances.AddInstance(contract);
         }
     }
 }
        void IWmiProvider.EnumInstances(IWmiInstances instances)
        {
            Fx.Assert(null != instances, "");
            int processId = AppDomainInfo.Current.ProcessId;
            int appDomainId = AppDomainInfo.Current.Id;
            lock (ContractInstanceProvider.knownContracts)
            {
                UpdateContracts();
                foreach (ContractDescription contract in ContractInstanceProvider.knownContracts.Values)
                {
                    IWmiInstance instance = instances.NewInstance(null);

                    instance.SetProperty(AdministrationStrings.ProcessId, processId);
                    instance.SetProperty(AdministrationStrings.AppDomainId, appDomainId);

                    FillContract(instance, contract);

                    instances.AddInstance(instance);
                }
            }

        }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     int processId = AppDomainInfo.Current.ProcessId;
     int id = AppDomainInfo.Current.Id;
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         foreach (System.ServiceModel.Administration.EndpointInfo info2 in info.Endpoints)
         {
             IWmiInstance instance = instances.NewInstance(null);
             instance.SetProperty("ProcessId", processId);
             instance.SetProperty("AppDomainId", id);
             FillEndpointInfo(info2, instance);
             instances.AddInstance(instance);
         }
     }
 }
 void IWmiProvider.EnumInstances(IWmiInstances instances)
 {
     int processId = AppDomainInfo.Current.ProcessId;
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         IWmiInstance instance = instances.NewInstance(null);
         instance.SetProperty("DistinguishedName", info.DistinguishedName);
         instance.SetProperty("ProcessId", processId);
         this.FillServiceInfo(info, instance);
         instances.AddInstance(instance);
     }
 }