Autofac .NET Inversion of Control Container
Register<(Of <(T>)>) Method (builder, delegate)
NamespacesAutofacRegistrationExtensionsRegister<(Of <(T>)>)(ContainerBuilder, Func<(Of <(IComponentContext, T>)>))
Register a delegate as a component.
Declaration Syntax
C#Visual BasicVisual C++
Public Shared Function Register(Of T) ( _
	builder As ContainerBuilder, _
	delegate As Func(Of IComponentContext, T) _
) As IRegistrationBuilder(Of T, SimpleActivatorData, SingleRegistrationStyle)
public:
generic<typename T>
static IRegistrationBuilder<T, SimpleActivatorData^, SingleRegistrationStyle^>^ Register(
	ContainerBuilder^ builder, 
	Func<IComponentContext^, T>^ delegate
)
Generic Template Parameters
T
The type of the instance.
Parameters
builder (ContainerBuilder)
Container builder.
delegate (Func<(Of <(IComponentContext, T>)>))
The delegate to register.
Return Value
Registration builder allowing the registration to be configured.

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)