internal bool IsResultMatchingClientSideQuery(CimInstance result)
        {
            bool flag;
            Func <ClientSideQuery.CimInstanceFilterBase, bool> func = null;

            lock (this._myLock)
            {
                ClientSideQuery clientSideQuery = this;
                clientSideQuery._numberOfResultsFromMi = clientSideQuery._numberOfResultsFromMi + 1;
                List <ClientSideQuery.CimInstanceFilterBase> cimInstanceFilterBases = this._filters;
                if (func == null)
                {
                    func = (ClientSideQuery.CimInstanceFilterBase f) => f.IsMatch(result);
                }
                if (!cimInstanceFilterBases.All <ClientSideQuery.CimInstanceFilterBase>(func))
                {
                    flag = false;
                }
                else
                {
                    ClientSideQuery clientSideQuery1 = this;
                    clientSideQuery1._numberOfMatchingResults = clientSideQuery1._numberOfMatchingResults + 1;
                    flag = true;
                }
            }
            return(flag);
        }
Exemple #2
0
 internal CimQuery()
 {
     _wqlCondition        = new StringBuilder();
     this.ClientSideQuery = new ClientSideQuery();
 }
Exemple #3
0
			protected void AddPropertyValueFilter(ClientSideQuery.PropertyValueFilter propertyValueFilter)
			{
				this._propertyValueFilters.Add(propertyValueFilter);
			}
Exemple #4
0
 internal CimQuery()
 {
     this.queryOptions    = new Dictionary <string, object>(StringComparer.OrdinalIgnoreCase);
     this.wqlCondition    = new StringBuilder();
     this.ClientSideQuery = new ClientSideQuery();
 }