public IObservable <Win32NTDomain> GroupComponentAsync(Win32Group inPartComponent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inPartComponent.AsCimInstance(), options); return(instances.Select(i => (Win32NTDomain)scope.Mapper.Create(scope, i))); }
public IEnumerable <Win32Account> PartComponent(Win32Group inGroupComponent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveTarget(scope, inGroupComponent.AsCimInstance(), options); return(instances.Select(i => (Win32Account)scope.Mapper.Create(scope, i))); }