16 writes to Result
Microsoft.AspNetCore.Rewrite (16)
RedirectRule.cs (1)
49
context.
Result
= RuleResult.EndResponse;
RedirectToHttpsRule.cs (1)
37
context.
Result
= RuleResult.EndResponse;
RedirectToNonWwwRule.cs (2)
42
context.
Result
= RuleResult.ContinueRules;
48
context.
Result
= RuleResult.ContinueRules;
RedirectToWwwHelper.cs (1)
56
context.
Result
= RuleResult.EndResponse;
RedirectToWwwRule.cs (2)
42
context.
Result
= RuleResult.ContinueRules;
48
context.
Result
= RuleResult.ContinueRules;
RewriteMiddleware.cs (1)
61
Result
= RuleResult.ContinueRules
RewriteRule.cs (1)
47
context.
Result
= RuleResult.SkipRemainingRules;
UrlActions\AbortAction.cs (1)
13
context.
Result
= RuleResult.EndResponse;
UrlActions\CustomResponseAction.cs (1)
45
context.
Result
= RuleResult.EndResponse;
UrlActions\ForbiddenAction.cs (1)
13
context.
Result
= RuleResult.EndResponse;
UrlActions\GoneAction.cs (1)
13
context.
Result
= RuleResult.EndResponse;
UrlActions\NoneAction.cs (1)
17
context.
Result
= Result;
UrlActions\RedirectAction.cs (1)
79
context.
Result
= RuleResult.EndResponse;
UrlActions\RewriteAction.cs (1)
134
context.
Result
= Result;
10 references to Result
Microsoft.AspNetCore.Rewrite (4)
IRule.cs (1)
13
/// Implementations of ApplyRule should set the value for <see cref="RewriteContext.
Result
"/>
RewriteMiddleware.cs (3)
67
if (rewriteContext.
Result
== RuleResult.EndResponse)
97
switch (rewriteContext.
Result
)
111
throw new ArgumentOutOfRangeException($"Invalid rule termination {rewriteContext.
Result
}");
Microsoft.AspNetCore.Rewrite.Tests (6)
IISUrlRewrite\UrlRewriteApplicationTests.cs (3)
28
Assert.Equal(RuleResult.SkipRemainingRules, context.
Result
);
47
Assert.Equal(RuleResult.ContinueRules, context.
Result
);
70
Assert.Equal(RuleResult.ContinueRules, context.
Result
);
UrlActions\AbortActionTests.cs (1)
18
Assert.Equal(RuleResult.EndResponse, context.
Result
);
UrlActions\ForbiddenActionTests.cs (1)
20
Assert.Equal(RuleResult.EndResponse, context.
Result
);
UrlActions\GoneActionTests.cs (1)
19
Assert.Equal(RuleResult.EndResponse, context.
Result
);