| ComponentRegistrarSetAutoActivateTReflectionActivatorData, TSingleRegistrationStyle Method | 
Namespace: Autofac.Configuration.Core
 Syntax
Syntaxprotected virtual void SetAutoActivate<TReflectionActivatorData, TSingleRegistrationStyle>( IConfiguration component, IRegistrationBuilder<Object, TReflectionActivatorData, TSingleRegistrationStyle> registrar ) where TReflectionActivatorData : ReflectionActivatorData where TSingleRegistrationStyle : SingleRegistrationStyle
 Exceptions
Exceptions| Exception | Condition | 
|---|---|
| ArgumentNullException | Thrown if registrar or component is . | 
| InvalidOperationException | Thrown if the value for autoActivate is not part of the recognized grammar. | 
 Remarks
RemarksBy default, this implementation understands , empty, or values (false, 0, no) to mean "not auto-activated" and values (true, 1, yes) to mean auto activation should occur.
You may override this method to extend the available grammar for auto activation settings.
 See Also
See Also