Пример #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
 private IAssociationEvent InterceptInboundAssociation(IAssociationEvent ev)
 {
     if (ev is InboundAssociation) return new InboundAssociation(new FailureInjectorHandle(ev.AsInstanceOf<InboundAssociation>().Association, this));
     return ev;
 }
Пример #4
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));
         }
     }
 }