Defined:
#if !DEBUG
[RequireHttps]
#endif
[Authorize(Roles="Admin")]
public class AdminAuthorizeController : Controller { }
Used:
public class GlobalCrudController : AdminAuthorizeController
Will this ensure that the GlobalCrudController will have the [RequireHttps] markup when not in DEBUG mode?
Yes, has this parameter. Attributes are inherited in C# in this case. A conditional compilation statement like the one you have used is pretty simple. It will include the code if the statement is true, otherwise it will not.