public bool ContainsPayload <T>(PayloadKey <T> key) { try { ParsePayloadFor(key); return(true); } catch (PayloadKeyNotFoundException) { return(false); } }
public T ParsePayloadFor <T>(PayloadKey <T> key) { return(key.ParseFrom(Payload( ))); }