Ejemplo n.º 1
0
        public void Start(Func <Message, Task> handle)
        {
            _handle = handle;

            _store.SubscribeToAll(
                GetInitialPosition(),
                StreamMessageReceived,
                hasCaughtUp: HasCaughtUp
                );
        }
Ejemplo n.º 2
0
 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));
 }