QueryApiType
PackageFCQRS
C#-friendly Query API
Specification
Kind
Type
Members
4
Examples
0
InitSignature
QueryApi.Init(actorApi, lastOffset, eventHandler)
InitSignature
QueryApi.Init(actorApi, lastOffset, eventHandler)
InitSignature
QueryApi.Init(actorApi, lastOffset, eventHandler)
InitSignature
QueryApi.Init(actorApi, lastOffset, eventHandler)
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Init | QueryApi.Init(actorApi, lastOffset, eventHandler) | Initialize the query subscription with a filtered single-event handler: the handler updates the read model and returns Publish/Suppress to say whether this event wakes subscribers. |
| Init | QueryApi.Init(actorApi, lastOffset, eventHandler) | Initialize the query subscription with a single-event handler: the handler just updates the read model (returns void); each aggregate event is then published to subscribers as-is. |
| Init | QueryApi.Init(actorApi, lastOffset, eventHandler) | Initialize the query subscription (C# IList version - converts to F# list internally). |
| Init | QueryApi.Init(actorApi, lastOffset, eventHandler) | Initialize the query subscription (F# list version) |
Initialize the query subscription with a filtered single-event handler:
the handler updates the read model and returns Publish/Suppress to say
whether this event wakes subscribers. Between the void Action overload
(publish all) and the list-returning one (full control).
Parameters
| Name | Type | Description |
|---|---|---|
| actorApi | IActor | |
| lastOffset | int64 | |
| eventHandler | Func<int64, obj, Notify> |
Returns
ISubscribe
Initialize the query subscription with a single-event handler: the
handler just updates the read model (returns void); each aggregate event
is then published to subscribers as-is. Use a list-returning overload
when notifications must be filtered or transformed.
Parameters
| Name | Type | Description |
|---|---|---|
| actorApi | IActor | |
| lastOffset | int64 | |
| eventHandler | Action<int64, obj> |
Returns
ISubscribe
Initialize the query subscription (C# IList version - converts to F# list
internally). An overload of Init, distinguished by the handler's return type.
Parameters
| Name | Type | Description |
|---|---|---|
| actorApi | IActor | |
| lastOffset | int64 | |
| eventHandler | Func<int64, obj, IList<IMessageWithCID>> |
Returns
ISubscribe