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
ChangeTypeReadModelChangeTypeThe ReadModelChangeType the method reacts to.
MethodMethodInfoThe MethodInfo of the handler method.
ReadModelTypeTypeThe read model Type the method reacts to.
IsCollectionboolWhether the first parameter is a collection of read models rather than a single instance.
ReadModelReactorMethod(ReadModelReactorMethod)
protected ReadModelReactorMethod(ReadModelReactorMethod original)
Parameters
originalReadModelReactorMethod
Properties
ChangeType
The ReadModelChangeType the method reacts to.
public ReadModelChangeType ChangeType { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsCollection
Whether the first parameter is a collection of read models rather than a single instance.
public bool IsCollection { get; init; }
Property Value
Method
The MethodInfo of the handler method.
public MethodInfo Method { get; init; }
Property Value
ReadModelType
The read model Type the method reacts to.
public Type ReadModelType { get; init; }
Property Value
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
ChangeTypeReadModelChangeTypeMethodMethodInfoReadModelTypeTypeIsCollectionbool
Equals(ReadModelReactorMethod?)
public virtual bool Equals(ReadModelReactorMethod? other)
Parameters
otherReadModelReactorMethod
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ReadModelReactorMethod?, ReadModelReactorMethod?)
public static bool operator ==(ReadModelReactorMethod? left, ReadModelReactorMethod? right)
Parameters
leftReadModelReactorMethodrightReadModelReactorMethod
Returns
operator !=(ReadModelReactorMethod?, ReadModelReactorMethod?)
public static bool operator !=(ReadModelReactorMethod? left, ReadModelReactorMethod? right)
Parameters
leftReadModelReactorMethodrightReadModelReactorMethod