Пример #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;
 }