Example #1
0
 private IAssociationEvent InterceptInboundAssociation(IAssociationEvent ev)
 {
     if (ev is InboundAssociation)
     {
         return(new InboundAssociation(new FailureInjectorHandle(ev.AsInstanceOf <InboundAssociation>().Association, this)));
     }
     return(ev);
 }
Example #2
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="ev">TBD</param>
 public void Notify(IAssociationEvent ev)
 {
     if (ev is InboundAssociation && ShouldDropInbound(ev.AsInstanceOf <InboundAssociation>().Association.RemoteAddress, ev, "notify"))
     {
         //ignore
     }
     else
     {
         if (_upstreamListener == null)
         {
         }
         else
         {
             _upstreamListener.Notify(InterceptInboundAssociation(ev));
         }
     }
 }
Example #3
0
 public void Notify(IAssociationEvent ev)
 {
     Actor.Tell(ev);
 }
Example #4
0
 /// <summary>
 /// Notify the Actor about an <see cref="IAssociationEvent"/>.
 /// </summary>
 /// <param name="ev">The <see cref="IAssociationEvent"/> message to notify the Actor about</param>
 public void Notify(IAssociationEvent ev)
 {
     Actor.Tell(ev);
 }
Example #5
0
 private IAssociationEvent InterceptInboundAssociation(IAssociationEvent ev)
 {
     if (ev is InboundAssociation) return new InboundAssociation(new FailureInjectorHandle(ev.AsInstanceOf<InboundAssociation>().Association, this));
     return ev;
 }
Example #6
0
 public void Notify(IAssociationEvent ev)
 {
     if (ev is InboundAssociation && ShouldDropInbound(ev.AsInstanceOf<InboundAssociation>().Association.RemoteAddress, ev, "notify"))
     {
         //ignore
     }
     else
     {
         if (_upstreamListener == null)
         {
         }
         else
         {
             _upstreamListener.Notify(InterceptInboundAssociation(ev));
         }
     }
 }