/// <summary> /// Remove o valor do campo com o nome informado. /// </summary> /// <param name="fieldName">Nome do campo que será removido.</param> public void RemoveValueByField(OperationContextFieldName fieldName) { if (_fieldValueTable != null) { _fieldValueTable.Remove(fieldName); } }
public static OperationContext Create(PoolManager poolManager, OperationContextFieldName fieldName, object fieldValue) { var instance = Create(poolManager); instance.Add(fieldName, fieldValue); return(instance); }
public object GetValueByField(OperationContextFieldName fieldName) { object result = null; if (_fieldValueTable != null) result = _fieldValueTable[fieldName]; return result; }
/// <summary> /// Recupera o valor pelo nome do campo informado. /// </summary> /// <param name="fieldName"></param> /// <returns></returns> public object GetValueByField(OperationContextFieldName fieldName) { object obj2 = null; if (_fieldValueTable != null) { obj2 = _fieldValueTable[fieldName]; } return(obj2); }
public void Add(OperationContextFieldName fieldName, object fieldValue) { lock (this) { if (_fieldValueTable == null) _fieldValueTable = new Hashtable(); _fieldValueTable[fieldName] = fieldValue; } }
/// <summary> /// Verifica se no contexto existe algum valor para o nome de campo informado. /// </summary> /// <param name="fieldName"></param> /// <returns></returns> public bool Contains(OperationContextFieldName fieldName) { bool flag = false; if (_fieldValueTable != null) { flag = _fieldValueTable.Contains(fieldName); } return(flag); }
/// <summary> /// Adiciona um novo campo para o contexto. /// </summary> /// <param name="fieldName">Nome do campo.</param> /// <param name="fieldValue">Valor do campo.</param> public void Add(OperationContextFieldName fieldName, object fieldValue) { lock (this) { if (_fieldValueTable == null) { _fieldValueTable = new Hashtable(); } _fieldValueTable[fieldName] = fieldValue; } }
public bool Contains(OperationContextFieldName fieldName) { bool contains = false; if (_fieldValueTable != null) { contains = _fieldValueTable.Contains(fieldName); } return(contains); }
public object GetValueByField(OperationContextFieldName fieldName) { object result = null; if (_fieldValueTable != null) { result = _fieldValueTable[fieldName]; } return(result); }
public static OperationContext CreateWith(OperationContextFieldName field, object value) { return(new OperationContext().With(field, value)); }
public OperationContext(OperationContextFieldName fieldName, object fieldValue) : this() { Add(fieldName, fieldValue); }
public OperationContext(OperationContextFieldName fieldName, object fieldValue) { CreateOperationId(); Add(fieldName, fieldValue); }
public static OperationContext CreateAndMarkInUse(PoolManager poolManager, int moduleRefId, OperationContextFieldName fieldName, object fieldValue) { var instance = Create(poolManager, fieldName, fieldValue); instance.MarkInUse(moduleRefId); return(instance); }
public void RemoveValueByField(OperationContextFieldName fieldName) { lock (this) { if (_fieldValueTable != null) _fieldValueTable.Remove(fieldName); } }
public bool Contains(OperationContextFieldName fieldName) { bool contains = false; if (_fieldValueTable != null) contains = _fieldValueTable.Contains(fieldName); return contains; }
public OperationContext With(OperationContextFieldName field, object value) { Add(field, value); return(this); }