Class ColorFruitTagger
Implements
Inherited Members
Namespace: Akka.Persistence.TCK.Query
Assembly: Akka.Persistence.TCK.dll
Syntax
public class ColorFruitTagger : IWriteEventAdapterProperties
| Edit this page View SourceColors
Declaration
public static IImmutableSet<string> Colors { get; }Property Value
| Type | Description | 
|---|---|
| IImmutableSet<string> | 
Fruits
Declaration
public static IImmutableSet<string> Fruits { get; }Property Value
| Type | Description | 
|---|---|
| IImmutableSet<string> | 
Methods
| Edit this page View SourceManifest(object)
Return the manifest (type hint) that will be provided in the FromJournal(object, string) method. Use empty string if not needed.
Declaration
public string Manifest(object evt)Parameters
| Type | Name | Description | 
|---|---|---|
| object | evt | TBD | 
Returns
| Type | Description | 
|---|---|
| string | TBD | 
ToJournal(object)
Convert domain event to journal event type.
Some journal may require a specific type to be returned to them, for example if a primary key has to be associated with each event then a journal may require adapters to return "EventWithPrimaryKey(event, key)".
The ToJournal(object) adaptation must be an 1-to-1 transformation. It is not allowed to drop incoming events during the `toJournal` adaptation.
Declaration
public object ToJournal(object evt)Parameters
| Type | Name | Description | 
|---|---|---|
| object | evt | the application-side domain event to be adapted to the journal model | 
Returns
| Type | Description | 
|---|---|
| object | the adapted event object, possibly the same object if no adaptation was performed | 
 Edit this page
Edit this page