Пример #1
0
        public IObservable <CIMDataFile> PartComponentAsync(CIMDirectory inGroupComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inGroupComponent.AsCimInstance(), options);

            return(instances.Select(i => (CIMDataFile)scope.Mapper.Create(scope, i)));
        }
        public IObservable <Win32Share> ShareAsync(CIMDirectory inSharedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inSharedElement.AsCimInstance(), options);

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