Пример #1
0
 public static T For <T>(this IRxnResponse context, RxnSource askedBy)
     where T : IRxnResponse
 {
     if (askedBy != null)
     {
         context.InReplyTo = askedBy.Id;
     }
     return((T)context);
 }
Пример #2
0
 public static bool IsFor(this IRxnResponse context, RxnSource askedBy)
 {
     return(askedBy != null && context.InReplyTo == askedBy.Id);
 }