ComponentRegistrarSetInjectPropertiesTReflectionActivatorData, TSingleRegistrationStyle Method |
Namespace: Autofac.Configuration.Core
protected virtual void SetInjectProperties<TReflectionActivatorData, TSingleRegistrationStyle>( IConfiguration component, IRegistrationBuilder<Object, TReflectionActivatorData, TSingleRegistrationStyle> registrar ) where TReflectionActivatorData : ReflectionActivatorData where TSingleRegistrationStyle : SingleRegistrationStyle
Exception | Condition |
---|---|
ArgumentNullException | Thrown if registrar or component is . |
InvalidOperationException | Thrown if the value for injectProperties is not part of the recognized grammar. |
By default, this implementation understands , empty, or values (false, 0, no) to mean "no property injection" and values (true, 1, yes) to mean property injection should occur.
You may override this method to extend the available grammar for property injection settings.