コード例 #1
0
 public void Abandon(Vlingo.Wire.Channel.RequestResponseContext context)
 {
     if (!this.actor.IsStopped)
     {
         Action <Vlingo.Wire.Channel.IResponseSenderChannel> cons8585439 = __ => __.Abandon(context);
         if (this.mailbox.IsPreallocated)
         {
             this.mailbox.Send(this.actor, cons8585439, null, AbandonRepresentation1);
         }
         else
         {
             this.mailbox.Send(
                 new LocalMessage <Vlingo.Wire.Channel.IResponseSenderChannel>(this.actor, cons8585439,
                                                                               AbandonRepresentation1));
         }
     }
     else
     {
         this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, AbandonRepresentation1));
     }
 }
コード例 #2
0
 public void RespondWith(Vlingo.Wire.Channel.RequestResponseContext context, object response,
                         bool closeFollowing)
 {
     if (!this.actor.IsStopped)
     {
         Action <Vlingo.Wire.Channel.IResponseSenderChannel> cons1528567494 = __ =>
                                                                              __.RespondWith(context, response, closeFollowing);
         if (this.mailbox.IsPreallocated)
         {
             this.mailbox.Send(this.actor, cons1528567494, null, RespondWithRepresentation4);
         }
         else
         {
             this.mailbox.Send(new LocalMessage <Vlingo.Wire.Channel.IResponseSenderChannel>(this.actor,
                                                                                             cons1528567494, RespondWithRepresentation4));
         }
     }
     else
     {
         this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, RespondWithRepresentation4));
     }
 }
コード例 #3
0
 public void RespondWith(Vlingo.Wire.Channel.RequestResponseContext context,
                         Vlingo.Wire.Message.IConsumerByteBuffer buffer, bool closeFollowing)
 {
     if (!this.actor.IsStopped)
     {
         Action <Vlingo.Wire.Channel.IResponseSenderChannel> cons829071244 = __ =>
                                                                             __.RespondWith(context, buffer, closeFollowing);
         if (this.mailbox.IsPreallocated)
         {
             this.mailbox.Send(this.actor, cons829071244, null, RespondWithRepresentation3);
         }
         else
         {
             this.mailbox.Send(new LocalMessage <Vlingo.Wire.Channel.IResponseSenderChannel>(this.actor,
                                                                                             cons829071244, RespondWithRepresentation3));
         }
     }
     else
     {
         this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, RespondWithRepresentation3));
     }
 }