Exemplo n.º 1
0
        public IObservable <Win32UserAccount> ElementAsync(Win32Desktop inSetting, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inSetting.AsCimInstance(), options);

            return(instances.Select(i => (Win32UserAccount)scope.Mapper.Create(scope, i)));
        }
        public IEnumerable <Win32ComputerSystem> Element(Win32Desktop inSetting, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSource(scope, inSetting.AsCimInstance(), options);

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