-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Settings are configured in the T4WebFormsInjection.tt.settings.xml file.
The value is a format to be applied to each of the constructors parameters. There is only one place holder and it will be replaced with the full name of the type to be injected.
<ContainerConstructorFormat>ObjectFactory.GetInstance<{0}>()</ContainerConstructorFormat>
The value is a format to be applied to release each of the parameters once the target object has been finalized. Object disposal is the responsibility of the container.
<ContainerReleaseFormat>ObjectFactory.Release({0})</ContainerReleaseFormat>
Types to include in the filter when generating parameterless constructors.
<IncludedTypes>
<Type>System.Web.UI.MasterPage</Type>
<Type>System.Web.UI.Page</Type>
<Type>System.Web.UI.UserControl</Type>
<Type>System.Web.IHttpHandler</Type>
<Type>System.Web.IHttpModule</Type>
</IncludedTypes>
Split the generated template into multiple files - one per namespace.
<SplitIntoMultipleFiles>True</SplitIntoMultipleFiles>
Generate StyleCop compliant documentation for the new parameterless constructors.
<IncludeDocumentation>True</IncludeDocumentation>
Generate class T4WebFormsInjection with property RegisteredTypes in the project's default namespace. The property returns an enumeration of all types that will be injected by T4WebFormsInjection. The type registration can then be confirmed against the IOC framework.
<OutputRegistrationList>True</OutputRegistrationList>