public void Start(Func <Message, Task> handle) { _handle = handle; _store.SubscribeToAll( GetInitialPosition(), StreamMessageReceived, hasCaughtUp: HasCaughtUp ); }
public IAllStreamSubscription SubscribeToAll( long?continueAfterPosition, AllStreamMessageReceived streamMessageReceived, AllSubscriptionDropped subscriptionDropped = null, HasCaughtUp hasCaughtUp = null, bool prefetchJsonData = true, string name = null) { return(_streamStore .SubscribeToAll( continueAfterPosition, streamMessageReceived, subscriptionDropped, hasCaughtUp, prefetchJsonData, name)); }