public IEventSequence FromJournal(object evt, string manifest) { Json m; if ((m = evt as Json) != null && m.Payload.ToString().StartsWith("b")) { return(EventSequence.Single(new NewB(m.Payload))); } else { return(EventSequence.Empty); } }
public IEventSequence FromJournal(object evt, string manifest) { return(EventSequence.Single("again-" + evt)); }
public virtual IEventSequence FromJournal(object evt, string manifest) { return(EventSequence.Single(evt)); }
public IEventSequence FromJournal(object evt, string manifest) { Log.Info("On it's way from the journal: {0}", evt); return(EventSequence.Single(evt)); }
public override IEventSequence FromJournal(object evt, string manifest) { // don't unpack, just pass through the JournalModel return(EventSequence.Single(evt)); }
public virtual IEventSequence FromJournal(object evt, string manifest) { IJournalModel m; return(EventSequence.Single((m = evt as IJournalModel) != null ? m.Payload : null)); }
public IEventSequence FromJournal(object evt, string manifest) => EventSequence.Single(ProtobufSerialization.FromProtobufContract(evt));