コード例 #1
0
        public IObservable <Win32ComputerSystem> GroupComponentAsync(Win32Service inPartComponent, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inPartComponent.AsCimInstance(), options);

            return(instances.Select(i => (Win32ComputerSystem)scope.Mapper.Create(scope, i)));
        }
        public IObservable <Win32ServiceSpecification> CheckAsync(Win32Service inElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inElement.AsCimInstance(), options);

            return(instances.Select(i => (Win32ServiceSpecification)scope.Mapper.Create(scope, i)));
        }
コード例 #3
0
        public IObservable <Win32WMISetting> SettingAsync(Win32Service inElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inElement.AsCimInstance(), options);

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