Ejemplo n.º 1
0
 public static bool IsKnownType(this DotvvmApiOptions options, Type type)
 {
     return(options.KnownTypeMatchers.Any(matcher => matcher.IsKnownType(type)));
 }
Ejemplo n.º 2
0
 public static void AddKnownAssembly(this DotvvmApiOptions options, params Assembly[] assemblies)
 {
     options.KnownTypeMatchers.Add(new AssemblyKnownTypeMatcher(assemblies));
 }
Ejemplo n.º 3
0
 public static void AddKnownNamespace(this DotvvmApiOptions options, string @namespace)
 {
     options.KnownTypeMatchers.Add(new NamespaceKnownTypeMatcher(@namespace));
 }
Ejemplo n.º 4
0
 public static void AddKnownType(this DotvvmApiOptions options, params Type[] types)
 {
     options.KnownTypeMatchers.Add(new StaticKnownTypeMatcher(types));
 }