public void Consume(Vlingo.Wire.Message.IConsumerByteBuffer buffer)
 {
     if (!this.actor.IsStopped)
     {
         Action <Vlingo.Wire.Channel.IResponseChannelConsumer> cons128873 = __ => __.Consume(buffer);
         if (this.mailbox.IsPreallocated)
         {
             this.mailbox.Send(this.actor, cons128873, null, ConsumeRepresentation1);
         }
         else
         {
             this.mailbox.Send(
                 new LocalMessage <Vlingo.Wire.Channel.IResponseChannelConsumer>(this.actor, cons128873,
                                                                                 ConsumeRepresentation1));
         }
     }
     else
     {
         this.actor.DeadLetters.FailedDelivery(new DeadLetter(this.actor, ConsumeRepresentation1));
     }
 }
Exemplo n.º 2
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));
     }
 }