bool PipeContext.HasPayloadType(Type contextType) { if (_payloadCache != null) { return(_payloadCache.HasPayloadType(contextType)); } return(_context.HasPayloadType(contextType)); }
public virtual bool HasPayloadType(Type contextType) { if (contextType.IsInstanceOfType(this)) { return(true); } return(_payloadCache.HasPayloadType(contextType)); }
/// <summary> /// Returns true if the payload type is included with or supported by the context type /// </summary> /// <param name="payloadType"></param> /// <returns></returns> public virtual bool HasPayloadType(Type payloadType) { return(payloadType.IsInstanceOfType(this) || _payloadCache.HasPayloadType(payloadType)); }
public bool HasPayloadType(Type payloadType) { return(_payloadCache.HasPayloadType(payloadType) || _parentCache.HasPayloadType(payloadType)); }
public virtual bool HasPayloadType(Type contextType) { return(_payloadCache.HasPayloadType(contextType) || _context.HasPayloadType(contextType)); }
bool IReadOnlyPayloadCollection.HasPayloadType(Type payloadType) { return(_payloadCache.HasPayloadType(payloadType) || _parentCache.HasPayloadType(payloadType)); }