-
-
Notifications
You must be signed in to change notification settings - Fork 5
EPiServer Integration
Using FeatureSwitch library it's really easy to define feature that is enabled or disabled depending on environment, context or external circumstances. FeatureSwitch EPiServer integration library provides an easy way to integration UI Control Panel into EPiServer CMS platform for enabling or disabling particular feature on demand.
No special setup is needed in order to integrate FeatureSwitch EPiServer library it's done automatically by InitializableModule
(code)
Control panel link is registered using GuiPlugin
attribute from EPiServer library.
Control Panel looks the same as mentioned in Asp.Net Mvc integration library.
Currently UI Control Panel is mapped to ~/modules/FeatureSwitch
route. By default following roles will have access to this route:
- Administrators
- CmsAdmins
- WebAdmins
Currently if you are using InitializableModule
there is no easy way to customize this other than registering route and securing location by yourself (copy code from FeatureSwitchInit.cs
).
These are few strategies that are defined in EPiServer package and are mainly used in EPiServer context:
-
EPiServerDatabase
- used if feature state is stored in EPiServer Dynamic Data Store storage -
EPiServerSite
- if feature state is dependent on the EPiServer site in which current request is made.
More information about extending FeatureSwitch library.