Table of Contents

Class EventRegistration

Namespace
AnyProtocol.Configuration
Assembly
AnyProtocol.dll

Provides the event registration implementation used by AnyProtocol applications.

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

Constructors

EventRegistration(Type, Type, ProtocolKey, string, string?)

Provides the event registration implementation used by AnyProtocol applications.

public EventRegistration(Type EventType, Type HandlerType, ProtocolKey Protocol, string Channel, string? ConsumerGroup)

Parameters

EventType Type

The event type.

HandlerType Type

The handler type.

Protocol ProtocolKey

The protocol registration key.

Channel string

The logical message channel.

ConsumerGroup string

The consumer group.

EventRegistration(Type, Type, string, string, string?)

Initializes a new instance of the EventRegistration class.

public EventRegistration(Type eventType, Type handlerType, string transportName, string channel, string? consumerGroup)

Parameters

eventType Type

The event type.

handlerType Type

The handler type.

transportName string

The transport name.

channel string

The logical message channel.

consumerGroup string

The consumer group.

Properties

Channel

The logical message channel.

public string Channel { get; init; }

Property Value

string

ConsumerGroup

The consumer group.

public string? ConsumerGroup { get; init; }

Property Value

string

EventType

The event type.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
public Type EventType { get; init; }

Property Value

Type

HandlerType

The handler type.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type HandlerType { get; init; }

Property Value

Type

Protocol

The protocol registration key.

public ProtocolKey Protocol { get; init; }

Property Value

ProtocolKey

RequiredOrdering

Gets or initializes the required ordering.

public TransportOrdering RequiredOrdering { get; init; }

Property Value

TransportOrdering

The required ordering.

TransportName

Gets the transport name.

public string TransportName { get; }

Property Value

string

The transport name.

Methods

Deconstruct(out Type, out Type, out ProtocolKey, out string, out string?)

public void Deconstruct(out Type EventType, out Type HandlerType, out ProtocolKey Protocol, out string Channel, out string? ConsumerGroup)

Parameters

EventType Type
HandlerType Type
Protocol ProtocolKey
Channel string
ConsumerGroup string

Equals(EventRegistration?)

public bool Equals(EventRegistration? other)

Parameters

other EventRegistration

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 ==(EventRegistration?, EventRegistration?)

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

Parameters

left EventRegistration
right EventRegistration

Returns

bool

operator !=(EventRegistration?, EventRegistration?)

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

Parameters

left EventRegistration
right EventRegistration

Returns

bool