Interface ICanProvideSubject

Namespace
Cratis.Chronicle.Events
Assembly
Cratis.Chronicle.dll

Defines a reactor that can provide the Subject to associate with side-effect events returned from handler methods.

public interface ICanProvideSubject
Extension Methods

Remarks

The subject identifies the data owner (e.g. a customer) for PII encryption purposes. Implement this interface on a reactor class to supply a subject automatically; otherwise no explicit subject is set and Chronicle will attempt to derive it from the event itself.

Methods

GetSubject()

Gets the Subject to associate with side-effect events.

Subject GetSubject()

Returns

Subject

The Subject.