Example #1
0
        public IObservable <CIMManagedElement> AffectedElementAsync(CIMJob inAffectingElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSourceAsync(scope, inAffectingElement.AsCimInstance(), options);

            return(instances.Select(i => (CIMManagedElement)scope.Mapper.Create(scope, i)));
        }
Example #2
0
        public IEnumerable <CIMManagedElement> OwningElement(CIMJob inOwnedElement, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTarget(scope, inOwnedElement.AsCimInstance(), options);

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