Table of Contents

Interface IMediatorDiagnostic

Namespace
Arbiter.Mediation
Assembly
Arbiter.Mediation.dll

Represents an interface for logging diagnostic information and activities related to requests and notifications.

public interface IMediatorDiagnostic

Methods

ActivityError(IDisposable?, Exception?, object?, string)

Logs an error for a specific activity.

void ActivityError(IDisposable? activity, Exception? exception, object? request, string memberName = "")

Parameters

activity IDisposable

The activity during which the error occurred.

exception Exception

The exception that was thrown.

request object

The request or notification that caused the error.

memberName string

The name of the member where the error occurred. Automatically provided by the compiler.

StartPublish<TNotification>()

Starts a diagnostic activity for publishing a notification.

IDisposable? StartPublish<TNotification>()

Returns

IDisposable

An IDisposable that represents the activity. Dispose to stop the activity.

Type Parameters

TNotification

The type of the notification being published.

StartSend(object)

Starts a diagnostic activity for sending a request.

IDisposable? StartSend(object request)

Parameters

request object

The request being sent, used for tagging diagnostic information.

Returns

IDisposable

An IDisposable that represents the activity. Dispose to stop the activity.

StartSend<TResponse>(IRequest<TResponse>)

Starts a diagnostic activity for sending a request and receiving a response.

IDisposable? StartSend<TResponse>(IRequest<TResponse> request)

Parameters

request IRequest<TResponse>

The request being sent, used for tagging diagnostic information.

Returns

IDisposable

An IDisposable that represents the activity. Dispose to stop the activity.

Type Parameters

TResponse

The type of the response expected.

StartSend<TRequest, TResponse>()

Starts a diagnostic activity for sending a request and receiving a response.

IDisposable? StartSend<TRequest, TResponse>()

Returns

IDisposable

An IDisposable that represents the activity. Dispose to stop the activity.

Type Parameters

TRequest

The type of the request being sent.

TResponse

The type of the response expected.