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))); }
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))); }