Class ServiceCollectionExtensions
Extension methods for Microsoft.Extensions.DependencyInjection.IServiceCollection.
Inheritance
System.Object
ServiceCollectionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChameleonForms
Assembly: ChameleonForms.dll
Syntax
public static class ServiceCollectionExtensions
Methods
| Improve this Doc View SourceAddChameleonForms(IServiceCollection, Func<ChameleonFormsConfigBuilder<DefaultFormTemplate>, ChameleonFormsConfigBuilder<DefaultFormTemplate>>)
Adds ChameleonForms configuration with the DefaultFormTemplate.
Declaration
public static void AddChameleonForms(this IServiceCollection services, Func<ChameleonFormsConfigBuilder<DefaultFormTemplate>, ChameleonFormsConfigBuilder<DefaultFormTemplate>> configModifier = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection |
System.Func<ChameleonFormsConfigBuilder<DefaultFormTemplate>, ChameleonFormsConfigBuilder<DefaultFormTemplate>> | configModifier | Lambda expression to alter configuration |
AddChameleonForms<TFormTemplate>(IServiceCollection, ChameleonFormsConfigBuilder<TFormTemplate>)
Adds ChameleonForms configuration with a specified form template and a builder instance.
Declaration
public static void AddChameleonForms<TFormTemplate>(this IServiceCollection services, ChameleonFormsConfigBuilder<TFormTemplate> configBuilder)
where TFormTemplate : class, IFormTemplate
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection |
ChameleonFormsConfigBuilder<TFormTemplate> | configBuilder | The configuration builder to use to specify the Chameleon Forms configuration |
Type Parameters
Name | Description |
---|---|
TFormTemplate | The form template type to register as the default template |
AddChameleonForms<TFormTemplate>(IServiceCollection, Func<ChameleonFormsConfigBuilder<TFormTemplate>, ChameleonFormsConfigBuilder<TFormTemplate>>)
Adds ChameleonForms configuration with a specified form template and a builder modification delegate.
Declaration
public static void AddChameleonForms<TFormTemplate>(this IServiceCollection services, Func<ChameleonFormsConfigBuilder<TFormTemplate>, ChameleonFormsConfigBuilder<TFormTemplate>> configModifier = null)
where TFormTemplate : class, IFormTemplate
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection |
System.Func<ChameleonFormsConfigBuilder<TFormTemplate>, ChameleonFormsConfigBuilder<TFormTemplate>> | configModifier | Lambda expression to alter configuration |
Type Parameters
Name | Description |
---|---|
TFormTemplate |