コード例 #1
0
 /// <summary>
 /// Returns true if the payload type is included with or supported by the context type
 /// </summary>
 /// <param name="payloadType"></param>
 /// <returns></returns>
 public override bool HasPayloadType(Type payloadType)
 {
     return(payloadType.IsInstanceOfType(this) || ReceiveContext.HasPayloadType(payloadType));
 }
コード例 #2
0
 public virtual bool HasPayloadType(Type contextType)
 {
     return(_context.HasPayloadType(contextType));
 }