Exemplo n.º 1
0
 public static Type[] AllClosedGenericHandlerInterfaces(this ITypeProvider typeProvider)
 {
     return typeProvider.AllHandlerTypes()
                        .SelectMany(t => t.GetInterfaces())
                        .Where(typeProvider.IsClosedGenericHandlerInterface)
                        .ToArray();
 }
Exemplo n.º 2
0
 public static Type[] AllResolvableTypes(this ITypeProvider typeProvider)
 {
     return Enumerable.Empty<Type>()
         .Union(typeProvider.AllHandlerTypes())
         .Union(typeProvider.FilterTypes)
         .Union(typeProvider.InterceptorTypes)
         .ToArray();
 }
Exemplo n.º 3
0
 public static Type[] AllResolvableTypes(this ITypeProvider typeProvider)
 {
     return typeProvider.AllHandlerTypes().Union(typeProvider.InterceptorTypes).ToArray();
 }