示例#1
0
 private IAssociationEvent InterceptInboundAssociation(IAssociationEvent ev)
 {
     if (ev is InboundAssociation)
     {
         return(new InboundAssociation(new FailureInjectorHandle(ev.AsInstanceOf <InboundAssociation>().Association, this)));
     }
     return(ev);
 }
示例#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));
         }
     }
 }
示例#3
0
 public void Notify(IAssociationEvent ev)
 {
     Actor.Tell(ev);
 }
示例#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);
 }
示例#5
0
 private IAssociationEvent InterceptInboundAssociation(IAssociationEvent ev)
 {
     if (ev is InboundAssociation) return new InboundAssociation(new FailureInjectorHandle(ev.AsInstanceOf<InboundAssociation>().Association, this));
     return ev;
 }
示例#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));
         }
     }
 }