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

NameSignatureSynopsis
InitQueryApi.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.
InitQueryApi.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.
InitQueryApi.Init(actorApi, lastOffset, eventHandler)Initialize the query subscription (C# IList version - converts to F# list internally).
InitQueryApi.Init(actorApi, lastOffset, eventHandler)Initialize the query subscription (F# list version)

Init

QueryApi.Init(actorApi, lastOffset, eventHandler)
Member
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

NameTypeDescription
actorApiIActor
lastOffsetint64
eventHandlerFunc<int64, obj, Notify>

Returns

ISubscribe

Init

QueryApi.Init(actorApi, lastOffset, eventHandler)
Member
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

NameTypeDescription
actorApiIActor
lastOffsetint64
eventHandlerAction<int64, obj>

Returns

ISubscribe

Init

QueryApi.Init(actorApi, lastOffset, eventHandler)
Member
Initialize the query subscription (C# IList version - converts to F# list internally). An overload of Init, distinguished by the handler's return type.

Parameters

NameTypeDescription
actorApiIActor
lastOffsetint64
eventHandlerFunc<int64, obj, IList<IMessageWithCID>>

Returns

ISubscribe

Init

QueryApi.Init(actorApi, lastOffset, eventHandler)
Member
Initialize the query subscription (F# list version)

Parameters

NameTypeDescription
actorApiIActor
lastOffsetint64
eventHandlerFunc<int64, obj, IMessageWithCID list>

Returns

ISubscribe