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
EventTypeTypeThe event type.
HandlerTypeTypeThe handler type.
ProtocolProtocolKeyThe protocol registration key.
ChannelstringThe logical message channel.
ConsumerGroupstringThe 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
eventTypeTypeThe event type.
handlerTypeTypeThe handler type.
transportNamestringThe transport name.
channelstringThe logical message channel.
consumerGroupstringThe consumer group.
Properties
Channel
The logical message channel.
public string Channel { get; init; }
Property Value
ConsumerGroup
The consumer group.
public string? ConsumerGroup { get; init; }
Property Value
EventType
The event type.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
public Type EventType { get; init; }
Property Value
HandlerType
The handler type.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type HandlerType { get; init; }
Property Value
Protocol
The protocol registration key.
public ProtocolKey Protocol { get; init; }
Property Value
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
EventTypeTypeHandlerTypeTypeProtocolProtocolKeyChannelstringConsumerGroupstring
Equals(EventRegistration?)
public bool Equals(EventRegistration? other)
Parameters
otherEventRegistration
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(EventRegistration?, EventRegistration?)
public static bool operator ==(EventRegistration? left, EventRegistration? right)
Parameters
leftEventRegistrationrightEventRegistration
Returns
operator !=(EventRegistration?, EventRegistration?)
public static bool operator !=(EventRegistration? left, EventRegistration? right)
Parameters
leftEventRegistrationrightEventRegistration