public static T For <T>(this IRxnResponse context, RxnSource askedBy) where T : IRxnResponse { if (askedBy != null) { context.InReplyTo = askedBy.Id; } return((T)context); }
public static bool IsFor(this IRxnResponse context, RxnSource askedBy) { return(askedBy != null && context.InReplyTo == askedBy.Id); }