Exemplo n.º 1
0
 /// <summary> Retrieves a list of all events written to a stream so far. </summary>
 public static Task <IReadOnlyList <KeyValuePair <uint, TEvent> > > GetEvents <TEvent, TState>(
     EventStreamService <TEvent, TState> ess,
     CancellationToken cancel = default(CancellationToken))
     where TEvent : class
     where TState : class
 {
     return(GetEvents(GetStream(ess), cancel));
 }
Exemplo n.º 2
0
 /// <summary> Retrieve the internal <see cref="EventStream{TEvent}"/> object from a service. </summary>
 public static EventStream <TEvent> GetStream <TEvent, TState>(EventStreamService <TEvent, TState> ess)
     where TEvent : class
     where TState : class
 {
     return(ess.Wrapper.Stream);
 }