Table of Contents

Class NotificationHandlerExecutor

Namespace
Caesar
Assembly
Caesar.Abstractions.dll

A resolved notification handler together with a callback that invokes it.

public sealed record NotificationHandlerExecutor : IEquatable<NotificationHandlerExecutor>
Inheritance
NotificationHandlerExecutor
Implements
Inherited Members

Constructors

NotificationHandlerExecutor(object, Func<INotification, CancellationToken, Task>)

A resolved notification handler together with a callback that invokes it.

public NotificationHandlerExecutor(object HandlerInstance, Func<INotification, CancellationToken, Task> HandlerCallback)

Parameters

HandlerInstance object

The handler instance (useful for logging or filtering).

HandlerCallback Func<INotification, CancellationToken, Task>

Invokes the handler for a notification.

Properties

HandlerCallback

Invokes the handler for a notification.

public Func<INotification, CancellationToken, Task> HandlerCallback { get; init; }

Property Value

Func<INotification, CancellationToken, Task>

HandlerInstance

The handler instance (useful for logging or filtering).

public object HandlerInstance { get; init; }

Property Value

object

Methods

Deconstruct(out object, out Func<INotification, CancellationToken, Task>)

public void Deconstruct(out object HandlerInstance, out Func<INotification, CancellationToken, Task> HandlerCallback)

Parameters

HandlerInstance object
HandlerCallback Func<INotification, CancellationToken, Task>

Equals(NotificationHandlerExecutor?)

public bool Equals(NotificationHandlerExecutor? other)

Parameters

other NotificationHandlerExecutor

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(NotificationHandlerExecutor?, NotificationHandlerExecutor?)

public static bool operator ==(NotificationHandlerExecutor? left, NotificationHandlerExecutor? right)

Parameters

left NotificationHandlerExecutor
right NotificationHandlerExecutor

Returns

bool

operator !=(NotificationHandlerExecutor?, NotificationHandlerExecutor?)

public static bool operator !=(NotificationHandlerExecutor? left, NotificationHandlerExecutor? right)

Parameters

left NotificationHandlerExecutor
right NotificationHandlerExecutor

Returns

bool