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

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

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