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))); }
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))); }