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: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
public static AnyConcreteTypeNotAlreadyRegisteredSource WithRegistrationsAs(
	this AnyConcreteTypeNotAlreadyRegisteredSource source,
	Action<IRegistrationBuilder<Object, ConcreteReflectionActivatorData, SingleRegistrationStyle>> configurationAction


Type: Autofac.Features.ResolveAnythingAnyConcreteTypeNotAlreadyRegisteredSource
The registration source to configure.
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