mirror of https://github.com/Squidex/squidex.git
19 changed files with 23 additions and 51 deletions
@ -1,26 +0,0 @@ |
|||
// ==========================================================================
|
|||
// DeactivateForAppDomainAttribute.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.AspNetCore.Mvc.Filters; |
|||
|
|||
namespace Squidex.Pipeline |
|||
{ |
|||
public sealed class DeactivateForAppDomainAttribute : ActionFilterAttribute |
|||
{ |
|||
public override void OnActionExecuting(ActionExecutingContext context) |
|||
{ |
|||
var app = context.HttpContext.Features.Get<IAppFeature>(); |
|||
|
|||
if (app != null) |
|||
{ |
|||
context.Result = new NotFoundResult(); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue