Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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());
 }