示例#1
0
 public static string GetToken(this CommunicationRequest communicationRequest, CommunicationTokens communicationToken)
 {
     return(communicationRequest.Tokens.First(t => t.Key == communicationToken).Value);
 }
示例#2
0
 public static bool ContainsToken(this CommunicationRequest communicationRequest, CommunicationTokens communicationToken)
 {
     return(communicationRequest.Tokens.Count(each => each.Key == communicationToken) > 0);
 }