Table of Contents

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

CancellationToken

Methods

Add(string, object)

Add a key/value pair to the current probe context

void Add(string key, object value)

Parameters

key string

The key name

value object

The value

Add(string, string)

Add a key/value pair to the current probe context

void Add(string key, string value)

Parameters

key string

The key name

value string

The value

CreateScope(string)

ProbeContext CreateScope(string key)

Parameters

key string

Returns

ProbeContext

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 object

The object (typically anonymous with new{}