Esempio n. 1
0
        public IObservable <MSFTNetMainModeRule> GroupComponentAsync(CIMFilterEntryBase inPartComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inPartComponent.AsCimInstance(), options);

            return(instances.Select(i => (MSFTNetMainModeRule)scope.Mapper.Create(scope, i)));
        }
        public IEnumerable <CIMPolicyRule> GroupComponent(CIMFilterEntryBase inPartComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSource(scope, inPartComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMPolicyRule)scope.Mapper.Create(scope, i)));
        }