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

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

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