public UrlTemplate(string template) { Template = template ?? throw new ArgumentNullException(nameof(template)); _template = RawUriTemplate.Parse(template); _compiled = new ConcurrentDictionary <RuntimeTypeHandle, Func <object, string> >(); }
public UrlTemplate(string template) { Template = template ?? throw new ArgumentNullException(nameof(template)); _compiled = TemplateCompiler.Compile <T>(RawUriTemplate.Parse(template)); }