ILogicalDataContainer Interface
Namespace: PTS.Concurrency
Assembly: PTS.Concurrency.dll
Storage bound to logical call execution context in given environment.
Syntax
public interface ILogicalDataContainer
Methods
GetItem(String)
Retrieves an object with the specified key from the ILogicalDataContainer.
Declaration
object GetItem(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The name of the item in the call context. |
Returns
Type | Description |
---|---|
System.Object | The object in the call context associated with the specified key, or null if not found. |
RemoveItem(String)
Removes an object with the specified key.
Declaration
void RemoveItem(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key with which to associate the new item in the call context. |
SetItem(String, Object)
Stores given object and associates it with the specified key.
Declaration
void SetItem(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key with which to associate the new item in the call context. |
System.Object | value | The object to store in the call context. |