コード例 #1
0
 public void AppendAll <TSource, TSnapshotState>(string streamName, int fromStreamVersion,
                                                 IEnumerable <TSource> sources, Vlingo.Symbio.Metadata metadata,
                                                 Vlingo.Symbio.Store.Journal.IAppendResultInterest interest, object @object) where TSource : Source
 {
     if (!this.actor.IsStopped)
     {
         Action <Vlingo.Symbio.Store.Journal.IJournal <T> > cons128873 = __ =>
                                                                         __.AppendAll <TSource, TSnapshotState>(streamName, fromStreamVersion, sources, metadata, interest,
                                                                                                                @object);
         if (this.mailbox.IsPreallocated)
         {
             this.mailbox.Send(this.actor, cons128873, null, AppendAllRepresentation7);
         }
         else
         {
             this.mailbox.Send(
                 new LocalMessage <Vlingo.Symbio.Store.Journal.IJournal <T> >(this.actor, cons128873,
                                                                              AppendAllRepresentation7));
         }
     }
     else
     {
         this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, AppendAllRepresentation7));
     }
 }
コード例 #2
0
 public void AppendWith <TSource, TSnapshotState>(string streamName, int streamVersion, TSource source,
                                                  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, snapshot, interest,
                                                                                                                 @object);
         if (this.mailbox.IsPreallocated)
         {
             this.mailbox.Send(this.actor, cons128873, null, AppendWithRepresentation4);
         }
         else
         {
             this.mailbox.Send(
                 new LocalMessage <Vlingo.Symbio.Store.Journal.IJournal <T> >(this.actor, cons128873,
                                                                              AppendWithRepresentation4));
         }
     }
     else
     {
         this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, AppendWithRepresentation4));
     }
 }