RegistrationExtensionsRegisterHubs Method |
Register types that implement IHub in the provided assemblies.
Namespace:
Autofac.Integration.SignalR
Assembly:
Autofac.Integration.SignalR (in Autofac.Integration.SignalR.dll) Version: 3.0.0.0 (3.0.2.0)
Syntax public static IRegistrationBuilder<Object, ScanningActivatorData, DynamicRegistrationStyle> RegisterHubs(
this ContainerBuilder builder,
params Assembly[] controllerAssemblies
)
<ExtensionAttribute>
Public Shared Function RegisterHubs (
builder As ContainerBuilder,
ParamArray controllerAssemblies As Assembly()
) As IRegistrationBuilder(Of Object, ScanningActivatorData, DynamicRegistrationStyle)
Parameters
- builder
- Type: AutofacContainerBuilder
The container builder. - controllerAssemblies
- Type: System.ReflectionAssembly
Assemblies to scan for controllers.
Return Value
Type:
IRegistrationBuilderObject,
ScanningActivatorData,
DynamicRegistrationStyleRegistration builder allowing the controller components to be customised.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ContainerBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also