Click or drag to resize

AnyConcreteTypeNotAlreadyRegisteredSourceExtensionsWithRegistrationsAs Method

Fluent method for setting the registration configuration on AnyConcreteTypeNotAlreadyRegisteredSource.

Namespace:  Autofac.Features.ResolveAnything
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public static AnyConcreteTypeNotAlreadyRegisteredSource WithRegistrationsAs(
	this AnyConcreteTypeNotAlreadyRegisteredSource source,
	Action<IRegistrationBuilder<Object, ConcreteReflectionActivatorData, SingleRegistrationStyle>> configurationAction
)

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