public IObservable <CIMBaseMetricDefinition> AntecedentAsync(CIMBaseMetricValue inDependent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inDependent.AsCimInstance(), options); return(instances.Select(i => (CIMBaseMetricDefinition)scope.Mapper.Create(scope, i))); }
public IEnumerable <CIMManagedElement> Antecedent(CIMBaseMetricValue inDependent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSource(scope, inDependent.AsCimInstance(), options); return(instances.Select(i => (CIMManagedElement)scope.Mapper.Create(scope, i))); }