示例#1
0
 private static HalForm CreateHalForm(string selfHref, DefaultTemplate defaultTemplate)
 {
     var template = new Template(defaultTemplate);
      var halForm = new HalForm(new Links(selfHref), template);
      return halForm;
 }
示例#2
0
文件: HalForm.cs 项目: bouwe77/fmg
 public HalForm(Links links, Template template)
     : base(links)
 {
     // If I understand the spec correctly _templates is a collection, but only one template is allowed/necessary...
      Template = Enforce.ArgumentNotNull(template, nameof(template));
 }