21 lines
646 B
C#
21 lines
646 B
C#
// 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.
|
|
|
|
namespace Microsoft.AspNetCore.Rewrite.Internal.UrlActions
|
|
{
|
|
public class VoidAction : UrlAction
|
|
{
|
|
private readonly RuleResult _results;
|
|
|
|
public VoidAction(RuleResult results)
|
|
{
|
|
_results = results;
|
|
}
|
|
// Explicitly say that nothing happens
|
|
public override RuleResult ApplyAction(RewriteContext context, MatchResults ruleMatch, MatchResults condMatch)
|
|
{
|
|
return _results;
|
|
}
|
|
}
|
|
}
|