/// <summary>
 /// A callback to filter.
 /// </summary>
 /// <param name="obj">obj to filter.</param>
 /// <returns>true if the obj match the condition.</returns>
 internal bool EventFilter(RpceTransportEvent obj)
 {
     if (remoteEndpoint == null)
     {
         return (obj.EventType & this.eventType) != 0;
     }
     else
     {
         return (obj.EventType & this.eventType) != 0
             && this.remoteEndpoint.Equals(obj.RemoteEndPoint);
     }
 }
 /// <summary>
 /// A callback to filter.
 /// </summary>
 /// <param name="obj">obj to filter.</param>
 /// <returns>true if the obj match the condition.</returns>
 internal bool EventFilter(RpceTransportEvent obj)
 {
     if (remoteEndpoint == null)
     {
         return((obj.EventType & this.eventType) != 0);
     }
     else
     {
         return((obj.EventType & this.eventType) != 0 &&
                this.remoteEndpoint.Equals(obj.RemoteEndPoint));
     }
 }