LocalDataContainer Class
Namespace: PTS.Concurrency
Assembly: PTS.Concurrency.dll
Storage container with data bound to current logical execution context.
Syntax
public class LocalDataContainer : ILogicalDataContainer
Inheritance
System.Object
LocalDataContainer
Implements
Methods
GetItem(String)
Retrieves an object with the specified key from the ILogicalDataContainer.
Declaration
public 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
public 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 a given object and associates it with the specified key.
Declaration
public 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. |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()