public IObservable <Win32NamedJobObjectActgInfo> StatsAsync(Win32NamedJobObject inCollection, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveTargetAsync(scope, inCollection.AsCimInstance(), options); return(instances.Select(i => (Win32NamedJobObjectActgInfo)scope.Mapper.Create(scope, i))); }
public IEnumerable <Win32Process> Member(Win32NamedJobObject inCollection, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveTarget(scope, inCollection.AsCimInstance(), options); return(instances.Select(i => (Win32Process)scope.Mapper.Create(scope, i))); }