定义:
#if !DEBUG
[RequireHttps]
#endif
[Authorize(Roles="Admin")]
public class AdminAuthorizeController : Controller { }
用过的:
public class GlobalCrudController : AdminAuthorizeController
这会确保在不处于调试模式时GlobalCrudController
将具有[RequireHttps]
标记吗?