Header menu logo FCQRS

QueryApi Type

C#-friendly Query API

Static members

Static member Description

QueryApi.Init(actorApi, lastOffset, eventHandler)

Full Usage: QueryApi.Init(actorApi, lastOffset, eventHandler)

Parameters:
Returns: ISubscribe

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).

actorApi : IActor
lastOffset : int
eventHandler : Func<int64, obj, Notify>
Returns: ISubscribe

QueryApi.Init(actorApi, lastOffset, eventHandler)

Full Usage: QueryApi.Init(actorApi, lastOffset, eventHandler)

Parameters:
    actorApi : IActor
    lastOffset : int
    eventHandler : Action<int64, obj>

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.

actorApi : IActor
lastOffset : int
eventHandler : Action<int64, obj>
Returns: ISubscribe

QueryApi.Init(actorApi, lastOffset, eventHandler)

Full Usage: QueryApi.Init(actorApi, lastOffset, eventHandler)

Parameters:
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.

actorApi : IActor
lastOffset : int
eventHandler : Func<int64, obj, IList<IMessageWithCID>>
Returns: ISubscribe

QueryApi.Init(actorApi, lastOffset, eventHandler)

Full Usage: QueryApi.Init(actorApi, lastOffset, eventHandler)

Parameters:
Returns: ISubscribe

Initialize the query subscription (F# list version)

actorApi : IActor
lastOffset : int
eventHandler : Func<int64, obj, IMessageWithCID list>
Returns: ISubscribe

Type something to start searching.