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