예제 #1
0
 public bool ContainsPayload <T>(PayloadKey <T> key)
 {
     try {
         ParsePayloadFor(key);
         return(true);
     }
     catch (PayloadKeyNotFoundException) {
         return(false);
     }
 }
예제 #2
0
 public T ParsePayloadFor <T>(PayloadKey <T> key)
 {
     return(key.ParseFrom(Payload( )));
 }