public bool Contains(EventContextFieldName fieldName) { bool contains = false; if (_fieldValueTable != null) contains = _fieldValueTable.Contains(fieldName); return contains; }
public object GetValueByField(EventContextFieldName fieldName) { object result = null; if (_fieldValueTable != null) result = _fieldValueTable[fieldName]; return result; }
public void RemoveValueByField(EventContextFieldName fieldName) { lock (this) { if (_fieldValueTable != null) { _fieldValueTable.Remove(fieldName); } } }
public void Add(EventContextFieldName fieldName, object fieldValue) { lock (this) { if (_fieldValueTable == null) _fieldValueTable = new Hashtable(); _fieldValueTable[fieldName] = fieldValue; } }
public bool Contains(EventContextFieldName fieldName) { bool contains = false; if (_fieldValueTable != null) { contains = _fieldValueTable.Contains(fieldName); } return(contains); }
public object GetValueByField(EventContextFieldName fieldName) { object result = null; if (_fieldValueTable != null) { result = _fieldValueTable[fieldName]; } return(result); }
public void Add(EventContextFieldName fieldName, object fieldValue) { lock (this) { if (_fieldValueTable == null) { _fieldValueTable = new Hashtable(); } _fieldValueTable[fieldName] = fieldValue; } }
public EventContext(EventContextFieldName fieldName, object fieldValue) { Add(fieldName, fieldValue); }
public void RemoveValueByField(EventContextFieldName fieldName) { lock (this) { if (_fieldValueTable != null) _fieldValueTable.Remove(fieldName); } }