public Task <List <T> > GetAsync <T>(string?className = default, string?condition = default, EnumerationOptions?options = default, SelectQuery?query = default) where T : WMIBase, new() { (query, options) = WMIRepository.GetQueryParams <T>(className, condition, options, query); return(this.QueryAsync <T>(query, options)); }
public ComputerRepository(WMIRepository localWMI_LDAP) { this.LocalWMI_LDAP = localWMI_LDAP; }
public async Task <T?> GetOneAsync <T>(string?className = default, string?condition = default, EnumerationOptions?options = default, SelectQuery?query = default) where T : WMIBase, new() { (query, options) = WMIRepository.GetQueryParams <T>(className, condition, options, query); return((await this.QueryAsync <T>(query, options)).SingleOrDefault()); }