AnyConcreteTypeNotAlreadyRegisteredSourceExtensionsWithRegistrationsAs Method |
Namespace:
Autofac.Features.ResolveAnything
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public static AnyConcreteTypeNotAlreadyRegisteredSource WithRegistrationsAs(
this AnyConcreteTypeNotAlreadyRegisteredSource source,
Action<IRegistrationBuilder<Object, ConcreteReflectionActivatorData, SingleRegistrationStyle>> configurationAction
)
<ExtensionAttribute>
Public Shared Function WithRegistrationsAs (
source As AnyConcreteTypeNotAlreadyRegisteredSource,
configurationAction As Action(Of IRegistrationBuilder(Of Object, ConcreteReflectionActivatorData, SingleRegistrationStyle))
) As AnyConcreteTypeNotAlreadyRegisteredSource
Parameters
- source
- Type: Autofac.Features.ResolveAnythingAnyConcreteTypeNotAlreadyRegisteredSource
The registration source to configure. - configurationAction
- Type: SystemActionIRegistrationBuilderObject, ConcreteReflectionActivatorData, SingleRegistrationStyle
A configuration action that will run on any registration provided by the source.
Return Value
Type:
AnyConcreteTypeNotAlreadyRegisteredSource
The
source with the registration configuration set.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
AnyConcreteTypeNotAlreadyRegisteredSource. 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