public IObservable <CIMManagedElement> ManagedElementAsync(CIMSettingData inSettingData, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inSettingData.AsCimInstance(), options);

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

            return(instances.Select(i => (CIMCapabilities)scope.Mapper.Create(scope, i)));
        }
Esempio n. 3
0
        public IObservable <MsvmGuestServiceInterfaceComponentSettingData> GroupComponentAsync(CIMSettingData inPartComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inPartComponent.AsCimInstance(), options);

            return(instances.Select(i => (MsvmGuestServiceInterfaceComponentSettingData)scope.Mapper.Create(scope, i)));
        }
        public (System.UInt32 retval, CIMConcreteJob outJob, IEnumerable <MsvmFeatureSettingData> outResultingFeatureSettings) AddFeatureSettings(CIMSettingData inAffectedConfiguration, System.String[] inFeatureSettings)
        {
            var parameters = new CimMethodParametersCollection();

            if (inAffectedConfiguration != null)
            {
                parameters.Add(CimMethodParameter.Create("AffectedConfiguration", inAffectedConfiguration.AsCimInstance(), CimType.Reference, inAffectedConfiguration == null ? CimFlags.NullValue : CimFlags.None));
            }
            if (inFeatureSettings != null)
            {
                parameters.Add(CimMethodParameter.Create("FeatureSettings", inFeatureSettings, CimType.StringArray, inFeatureSettings == null ? CimFlags.NullValue : CimFlags.None));
            }
            var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "AddFeatureSettings", parameters);

            return((System.UInt32)result.ReturnValue.Value, (CIMConcreteJob)InfrastuctureObjectScope.Mapper.Create(InfrastuctureObjectScope, (CimInstance)result.OutParameters["Job"].Value), (IEnumerable <MsvmFeatureSettingData>)InfrastuctureObjectScope.Mapper.CreateMany <MsvmFeatureSettingData>(InfrastuctureObjectScope, (IEnumerable <CimInstance>)result.OutParameters["ResultingFeatureSettings"].Value));
        }