Detect if SSL is enabled

Topics: Customizing Orchard, Writing modules
Aug 21, 2012 at 10:15 AM

We're trying to use the Contrib.SecuredSocketsLayer module.

Is it possible to check if the module is enabled and the option 'AuthenticationEnabled' is enabled without referencing the module?

Developer
Aug 25, 2012 at 3:07 AM

You cannot check if a module is enabled or not, but you can check for its features' state using IShellStateManager.GetShellState().Features.