Пример #1
0
        public IEnumerable <CIMManagedElement> PartComponent(CIMManagedElement inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTarget(scope, inGroupComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMManagedElement)scope.Mapper.Create(scope, i)));
        }
Пример #2
0
        public IObservable <CIMManagedElement> GroupComponentAsync(CIMManagedElement inPartComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inPartComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMManagedElement)scope.Mapper.Create(scope, i)));
        }
Пример #3
0
        public IEnumerable <CIMManagedElement> Antecedent(CIMManagedElement inDependent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSource(scope, inDependent.AsCimInstance(), options);

            return(instances.Select(i => (CIMManagedElement)scope.Mapper.Create(scope, i)));
        }
        public IObservable <CIMSettingData> SettingDataAsync(CIMManagedElement inManagedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inManagedElement.AsCimInstance(), options);

            return(instances.Select(i => (CIMSettingData)scope.Mapper.Create(scope, i)));
        }
Пример #5
0
        public IObservable <CIMBaseMetricDefinition> DependentAsync(CIMManagedElement inAntecedent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inAntecedent.AsCimInstance(), options);

            return(instances.Select(i => (CIMBaseMetricDefinition)scope.Mapper.Create(scope, i)));
        }
Пример #6
0
        public IObservable <CIMCapabilities> CapabilitiesAsync(CIMManagedElement inManagedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inManagedElement.AsCimInstance(), options);

            return(instances.Select(i => (CIMCapabilities)scope.Mapper.Create(scope, i)));
        }
        public IEnumerable <CIMService> AffectingElement(CIMManagedElement inAffectedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTarget(scope, inAffectedElement.AsCimInstance(), options);

            return(instances.Select(i => (CIMService)scope.Mapper.Create(scope, i)));
        }
        public IObservable <MsvmStorageJob> AffectingElementAsync(CIMManagedElement inAffectedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inAffectedElement.AsCimInstance(), options);

            return(instances.Select(i => (MsvmStorageJob)scope.Mapper.Create(scope, i)));
        }
        public (System.UInt32 retval, CIMConcreteJob outJob) RemoveMember(CIMCollectionOfMSEs inCollection, CIMManagedElement inMember)
        {
            var parameters = new CimMethodParametersCollection();

            if (inCollection != null)
            {
                parameters.Add(CimMethodParameter.Create("Collection", inCollection.AsCimInstance(), CimType.Reference, inCollection == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inMember != null)
            {
                parameters.Add(CimMethodParameter.Create("Member", inMember.AsCimInstance(), CimType.Reference, inMember == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "RemoveMember", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value));
        }
Пример #10
0
        public (System.UInt32 retval, IEnumerable <CIMBaseMetricDefinition> outDefinitionList, System.UInt16[] outMetricCollectionEnabled, System.String[] outMetricNames) ShowMetricsByClass(CIMBaseMetricDefinition inDefinition, CIMManagedElement inSubject)
        {
            var parameters = new CimMethodParametersCollection();

            if (inDefinition != null)
            {
                parameters.Add(CimMethodParameter.Create("Definition", inDefinition.AsCimInstance(), CimType.Reference, inDefinition == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inSubject != null)
            {
                parameters.Add(CimMethodParameter.Create("Subject", inSubject.AsCimInstance(), CimType.Reference, inSubject == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ShowMetricsByClass", parameters);

            return((System.UInt32)result.ReturnValue.Value, (IEnumerable <CIMBaseMetricDefinition>)InfrastuctureObjectScope.Mapper.CreateMany <CIMBaseMetricDefinition>(InfrastuctureObjectScope, (IEnumerable <CimInstance>)result.OutParameters["DefinitionList"].Value), (System.UInt16[])result.OutParameters["MetricCollectionEnabled"].Value, (System.String[])result.OutParameters["MetricNames"].Value);
        }
Пример #11
0
        public System.UInt32 ControlMetricsByClass(CIMBaseMetricDefinition inDefinition, System.UInt16?inMetricCollectionEnabled, CIMManagedElement inSubject)
        {
            var parameters = new CimMethodParametersCollection();

            if (inDefinition != null)
            {
                parameters.Add(CimMethodParameter.Create("Definition", inDefinition.AsCimInstance(), CimType.Reference, inDefinition == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inMetricCollectionEnabled.HasValue)
            {
                parameters.Add(CimMethodParameter.Create("MetricCollectionEnabled", inMetricCollectionEnabled.Value, CimFlags.None));
            }
            if (inSubject != null)
            {
                parameters.Add(CimMethodParameter.Create("Subject", inSubject.AsCimInstance(), CimType.Reference, inSubject == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "ControlMetricsByClass", parameters);

            return((System.UInt32)result.ReturnValue.Value);
        }