//protected IEnumerable<IPersistentRepresentation> CreatePersistentBatch(IEnumerable<IPersistentEnvelope> resequencables) //{ // return resequencables.Where(PreparePersistentWrite).Cast<IPersistentRepresentation>(); //} protected bool PreparePersistentWrite(IPersistentEnvelope persistentEnvelope) { if (persistentEnvelope is IPersistentRepresentation) { var repr = AdaptToJournal(persistentEnvelope as IPersistentRepresentation); repr.PrepareWrite(Context); return true; } return false; }
protected bool PreparePersistentWrite(IPersistentEnvelope persistentEnvelope) { if (persistentEnvelope is IPersistentRepresentation) { var repr = persistentEnvelope as IPersistentRepresentation; repr.PrepareWrite(Context); return(true); } return(false); }