public void AppendWith <TSource, TSnapshotState>(string streamName, int streamVersion, TSource source, Vlingo.Symbio.Metadata metadata, TSnapshotState snapshot, Vlingo.Symbio.Store.Journal.IAppendResultInterest interest, object @object) where TSource : Source { if (!this.actor.IsStopped) { Action <Vlingo.Symbio.Store.Journal.IJournal <T> > cons128873 = __ => __.AppendWith <TSource, TSnapshotState>(streamName, streamVersion, source, metadata, snapshot, interest, @object); if (this.mailbox.IsPreallocated) { this.mailbox.Send(this.actor, cons128873, null, AppendWithRepresentation5); } else { this.mailbox.Send( new LocalMessage <Vlingo.Symbio.Store.Journal.IJournal <T> >(this.actor, cons128873, AppendWithRepresentation5)); } } else { this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, AppendWithRepresentation5)); } }
public void Write <TState>(string id, TState state, int stateVersion, Vlingo.Symbio.Metadata metadata, Vlingo.Symbio.Store.State.IWriteResultInterest interest, object @object) { if (!this.actor.IsStopped) { Action <Vlingo.Symbio.Store.State.IStateStore <TEntry> > cons128873 = __ => __.Write <TState>(id, state, stateVersion, metadata, interest, @object); if (this.mailbox.IsPreallocated) { this.mailbox.Send(this.actor, cons128873, null, WriteRepresentation10); } else { this.mailbox.Send( new LocalMessage <Vlingo.Symbio.Store.State.IStateStore <TEntry> >(this.actor, cons128873, WriteRepresentation10)); } } else { this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, WriteRepresentation10)); } }