Class ReadModelReactorMethod

Namespace
Cratis.Chronicle.ReadModels
Assembly
Cratis.Chronicle.dll

Represents a discovered handler method on a IReadModelReactor.

public record ReadModelReactorMethod : IEquatable<ReadModelReactorMethod>
Inheritance
ReadModelReactorMethod
Implements
Inherited Members
Extension Methods

Constructors

ReadModelReactorMethod(ReadModelChangeType, MethodInfo, Type, bool)

Represents a discovered handler method on a IReadModelReactor.

public ReadModelReactorMethod(ReadModelChangeType ChangeType, MethodInfo Method, Type ReadModelType, bool IsCollection)

Parameters

ChangeType ReadModelChangeType

The ReadModelChangeType the method reacts to.

Method MethodInfo

The MethodInfo of the handler method.

ReadModelType Type

The read model Type the method reacts to.

IsCollection bool

Whether the first parameter is a collection of read models rather than a single instance.

ReadModelReactorMethod(ReadModelReactorMethod)

protected ReadModelReactorMethod(ReadModelReactorMethod original)

Parameters

original ReadModelReactorMethod

Properties

ChangeType

The ReadModelChangeType the method reacts to.

public ReadModelChangeType ChangeType { get; init; }

Property Value

ReadModelChangeType

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IsCollection

Whether the first parameter is a collection of read models rather than a single instance.

public bool IsCollection { get; init; }

Property Value

bool

Method

The MethodInfo of the handler method.

public MethodInfo Method { get; init; }

Property Value

MethodInfo

ReadModelType

The read model Type the method reacts to.

public Type ReadModelType { get; init; }

Property Value

Type

Methods

Deconstruct(out ReadModelChangeType, out MethodInfo, out Type, out bool)

public void Deconstruct(out ReadModelChangeType ChangeType, out MethodInfo Method, out Type ReadModelType, out bool IsCollection)

Parameters

ChangeType ReadModelChangeType
Method MethodInfo
ReadModelType Type
IsCollection bool

Equals(ReadModelReactorMethod?)

public virtual bool Equals(ReadModelReactorMethod? other)

Parameters

other ReadModelReactorMethod

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ReadModelReactorMethod?, ReadModelReactorMethod?)

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

Parameters

left ReadModelReactorMethod
right ReadModelReactorMethod

Returns

bool

operator !=(ReadModelReactorMethod?, ReadModelReactorMethod?)

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

Parameters

left ReadModelReactorMethod
right ReadModelReactorMethod

Returns

bool