public IObservable <Win32Product> ProductAsync(Win32MSIResource inResource, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inResource.AsCimInstance(), options); return(instances.Select(i => (Win32Product)scope.Mapper.Create(scope, i))); }
public IObservable <Win32SoftwareElement> ElementAsync(Win32MSIResource inSetting, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inSetting.AsCimInstance(), options); return(instances.Select(i => (Win32SoftwareElement)scope.Mapper.Create(scope, i))); }