// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Rewrite.Internal { public class DelegateRule : Rule { private readonly Action _onApplyRule; public DelegateRule(Action onApplyRule) { _onApplyRule = onApplyRule; } public override void ApplyRule(RewriteContext context) => _onApplyRule(context); } }