public string GetTokenValue(T message, MessageToken token, string format) { return(_resolvers.TryGetValue(token, out var resolver) ? resolver(message, format) : null); }
public void Add(MessageToken token, MessageTokenResolver <T> resolver) { _resolvers[token] = resolver; }