Class Context
- Namespace
- Polly
- Assembly
- Polly.dll
public class Context : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IDictionary, ICollection, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
- Inheritance
-
Context
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
Context()
Context(string)
public Context(string operationKey)
Parameters
operationKey
string
Context(string, IDictionary<string, object>)
public Context(string operationKey, IDictionary<string, object> contextData)
Parameters
operationKey
string
contextData
IDictionary<string, object>
Properties
CorrelationId
public Guid CorrelationId { get; }
Property Value
- Guid
Count
public int Count { get; }
Property Value
- int
this[string]
public object this[string key] { get; set; }
Parameters
key
string
Property Value
- object
Keys
public ICollection<string> Keys { get; }
Property Value
- ICollection<string>
OperationKey
public string OperationKey { get; }
Property Value
- string
PolicyKey
public string PolicyKey { get; }
Property Value
- string
PolicyWrapKey
public string PolicyWrapKey { get; }
Property Value
- string
Values
public ICollection<object> Values { get; }
Property Value
- ICollection<object>
Methods
Add(object, object)
public void Add(object key, object value)
Parameters
key
object
value
object
Add(string, object)
public void Add(string key, object value)
Parameters
key
string
value
object
Clear()
Contains(object)
public bool Contains(object key)
Parameters
key
object
Returns
- bool
ContainsKey(string)
public bool ContainsKey(string key)
Parameters
key
string
Returns
- bool
CopyTo(Array, int)
public void CopyTo(Array array, int index)
Parameters
array
Array
index
int
GetEnumerator()
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<string, object>>
Remove(object)
public void Remove(object key)
Parameters
key
object
Remove(string)
public bool Remove(string key)
Parameters
key
string
Returns
- bool
TryGetValue(string, out object)
public bool TryGetValue(string key, out object value)
Parameters
key
string
value
object
Returns
- bool