Interface ProbeContext
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Passed to a probe site to inspect it for interesting things
public interface ProbeContext
- Extension Methods
Properties
CancellationToken
If for some reason the probe is cancelled, allowing an early withdrawal
CancellationToken CancellationToken { get; }
Property Value
Methods
Add(string, object)
Add a key/value pair to the current probe context
void Add(string key, object value)
Parameters
Add(string, string)
Add a key/value pair to the current probe context
void Add(string key, string value)
Parameters
CreateScope(string)
ProbeContext CreateScope(string key)
Parameters
key
string
Returns
Set(IEnumerable<KeyValuePair<string, object>>)
Add the values from the enumeration as key/value pairs
void Set(IEnumerable<KeyValuePair<string, object>> values)
Parameters
values
IEnumerable<KeyValuePair<string, object>>
Set(object)
Add the properties of the object as key/value pairs to the current context
void Set(object values)
Parameters
values
objectThe object (typically anonymous with new{}