示例#1
0
 public SanityQueryProvider(Type docType, SanityDataContext context, int maxNestingLevel, bool excludeDocTypeConstraint = false)
 {
     _excludeDocTypeConstraint = excludeDocTypeConstraint;
     MaxNestingLevel           = maxNestingLevel;
     DocType = docType;
     Context = context;
 }
 public static void AddHtmlSerializer(this SanityDataContext sanity, string type, Func <JToken, SanityOptions, Task <string> > serializer)
 {
     sanity.HtmlBuilder.AddSerializer(type, serializer);
 }
示例#3
0
 public SanityQueryProvider(Type docType, SanityDataContext context, int maxNestingLevel)
 {
     MaxNestingLevel = maxNestingLevel;
     DocType         = docType;
     Context         = context;
 }
示例#4
0
 public SanityQueryProvider(Type docType, SanityDataContext context)
 {
     DocType = docType;
     Context = context;
 }