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)); } }
public void Write <TState, TSource>(string id, TState state, int stateVersion, IEnumerable <Source <TSource> > sources, Vlingo.Symbio.Store.State.IWriteResultInterest interest) { if (!this.actor.IsStopped) { Action <Vlingo.Symbio.Store.State.IStateStore <TEntry> > cons128873 = __ => __.Write <TState, TSource>(id, state, stateVersion, sources, interest); if (this.mailbox.IsPreallocated) { this.mailbox.Send(this.actor, cons128873, null, WriteRepresentation5); } else { this.mailbox.Send( new LocalMessage <Vlingo.Symbio.Store.State.IStateStore <TEntry> >(this.actor, cons128873, WriteRepresentation5)); } } else { this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, WriteRepresentation5)); } }