ApplicationPartsServiceCollectionExtensions class
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Net.Web
DI extension methods related to application parts and type source.
public static class ApplicationPartsServiceCollectionExtensions
Public Members
| name | description |
|---|---|
| static AddApplicationPartsFeatureToggles(…) | Adds the IFeatureToggles service to the registry, scanning for FeatureKeySetAttribute in application parts and disabling by default features that have a [DefaultValue(false)] attribute. Note that this also calls AddMvcCore() to get the part manager if it is not provided and not found in the collection. |
| static AddApplicationPartsTypeSource(…) | Adds an application part type source to the service collection. Note that this also calls AddMvcCore() to get the part manager if it is not provided and not found in the collection. |