Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 internal CimQuery()
 {
     _wqlCondition        = new StringBuilder();
     this.ClientSideQuery = new ClientSideQuery();
 }
Ejemplo n.º 3
0
			protected void AddPropertyValueFilter(ClientSideQuery.PropertyValueFilter propertyValueFilter)
			{
				this._propertyValueFilters.Add(propertyValueFilter);
			}
Ejemplo n.º 4
0
 internal CimQuery()
 {
     this.queryOptions    = new Dictionary <string, object>(StringComparer.OrdinalIgnoreCase);
     this.wqlCondition    = new StringBuilder();
     this.ClientSideQuery = new ClientSideQuery();
 }