Exemplo 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));
 }
Exemplo n.º 2
0
 public ComputerRepository(WMIRepository localWMI_LDAP)
 {
     this.LocalWMI_LDAP = localWMI_LDAP;
 }
Exemplo n.º 3
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());
 }