Table of Contents

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

assemblies IEnumerable<Assembly>

Returns

IEnumerable<Assembly>

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

serviceType Type
assemblies IEnumerable<Assembly>

Returns

IEnumerable<Type>

GetClosedHandlerInterface(Type, Type)

Returns the closed form of the generic interface serviceType that handlerType implements.

public static Type GetClosedHandlerInterface(Type serviceType, Type handlerType)

Parameters

serviceType Type
handlerType Type

Returns

Type

Exceptions

InvalidOperationException

handlerType implements no closed form of it.