Exemple #1
0
        public bool Contains(EventContextFieldName fieldName)
        {
            bool contains = false;

            if (_fieldValueTable != null)
                contains = _fieldValueTable.Contains(fieldName);

            return contains;
        }
Exemple #2
0
        public object GetValueByField(EventContextFieldName fieldName)
        {
            object result = null;

            if (_fieldValueTable != null)
                result = _fieldValueTable[fieldName];

            return result;
        }
Exemple #3
0
 public void RemoveValueByField(EventContextFieldName fieldName)
 {
     lock (this)
     {
         if (_fieldValueTable != null)
         {
             _fieldValueTable.Remove(fieldName);
         }
     }
 }
Exemple #4
0
        public void Add(EventContextFieldName fieldName, object fieldValue)
        {
            lock (this)
            {
                if (_fieldValueTable == null)
                    _fieldValueTable = new Hashtable();

                _fieldValueTable[fieldName] = fieldValue;
            }
        }
Exemple #5
0
        public bool Contains(EventContextFieldName fieldName)
        {
            bool contains = false;

            if (_fieldValueTable != null)
            {
                contains = _fieldValueTable.Contains(fieldName);
            }

            return(contains);
        }
Exemple #6
0
        public object GetValueByField(EventContextFieldName fieldName)
        {
            object result = null;

            if (_fieldValueTable != null)
            {
                result = _fieldValueTable[fieldName];
            }

            return(result);
        }
Exemple #7
0
        public void Add(EventContextFieldName fieldName, object fieldValue)
        {
            lock (this)
            {
                if (_fieldValueTable == null)
                {
                    _fieldValueTable = new Hashtable();
                }

                _fieldValueTable[fieldName] = fieldValue;
            }
        }
Exemple #8
0
 public EventContext(EventContextFieldName fieldName, object fieldValue)
 {
     Add(fieldName, fieldValue);
 }
Exemple #9
0
 public void RemoveValueByField(EventContextFieldName fieldName)
 {
     lock (this)
     {
         if (_fieldValueTable != null)
             _fieldValueTable.Remove(fieldName);
     }
 }
Exemple #10
0
 public EventContext(EventContextFieldName fieldName, object fieldValue)
 {
     Add(fieldName, fieldValue);
 }