Class AssemblyScanner
- Namespace
- BSGameLib.Networking
- Assembly
- BSGameLib.Networking.dll
Finds the types and assemblies that automatic registration should use. Anything marked DoNotRegisterAttribute is skipped.
public static class AssemblyScanner
- Inheritance
-
AssemblyScanner
- Inherited Members
Methods
FilterAssemblies(IEnumerable<Assembly>)
Returns the assemblies that are not marked DoNotRegisterAttribute.
public static IEnumerable<Assembly> FilterAssemblies(IEnumerable<Assembly> assemblies)
Parameters
assembliesIEnumerable<Assembly>
Returns
FindImplementations(Type, IEnumerable<Assembly>)
Returns the concrete types in assemblies that implement
serviceType. An open generic serviceType matches types
that implement a closed form of it.
public static IEnumerable<Type> FindImplementations(Type serviceType, IEnumerable<Assembly> assemblies)
Parameters
serviceTypeTypeassembliesIEnumerable<Assembly>
Returns
GetClosedHandlerInterface(Type, Type)
Returns the closed form of the generic interface serviceType that
handlerType implements.
public static Type GetClosedHandlerInterface(Type serviceType, Type handlerType)
Parameters
Returns
Exceptions
- InvalidOperationException
handlerTypeimplements no closed form of it.