public IObservable <MsvmExternalEthernetPort> AntecedentAsync(MsvmExternalEthernetPort inDependent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inDependent.AsCimInstance(), options); return(instances.Select(i => (MsvmExternalEthernetPort)scope.Mapper.Create(scope, i))); }
public IEnumerable <MsvmExternalEthernetPort> Dependent(MsvmExternalEthernetPort inAntecedent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveTarget(scope, inAntecedent.AsCimInstance(), options); return(instances.Select(i => (MsvmExternalEthernetPort)scope.Mapper.Create(scope, i))); }