示例#1
0
        public IObservable <MSFTNetFirewallProfile> GroupComponentAsync(CIMPolicyRule inPartComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inPartComponent.AsCimInstance(), options);

            return(instances.Select(i => (MSFTNetFirewallProfile)scope.Mapper.Create(scope, i)));
        }
示例#2
0
        public IObservable <CIMPolicyAction> PartComponentAsync(CIMPolicyRule inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inGroupComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMPolicyAction)scope.Mapper.Create(scope, i)));
        }
        public IEnumerable <CIMFilterEntryBase> PartComponent(CIMPolicyRule inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTarget(scope, inGroupComponent.AsCimInstance(), options);

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