Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

XML Comments and Feedback from 1-on-1 with Nate #79

Merged
merged 1 commit into from
Aug 30, 2016
Merged

Conversation

jkotalik
Copy link
Contributor

Couple of key things:

  • Decided that API wise, having the keyword "Add" made it more clear that we are adding a rule rather than rewriting the options itself (or redirecting).
  • UrlRewrite and ModRewrite are a bit unclear, so we added "Apache" and "IIS" to it.

@jkotalik
Copy link
Contributor Author

cc @Tratcher @natemcmaster

@jkotalik
Copy link
Contributor Author

@muratg for naming.

@@ -8,15 +8,18 @@

namespace Microsoft.AspNetCore.Rewrite
{
public static class ModRewriteOptionsExtensions
/// <summary>
/// Apache Mod rewrite extensions on top of the <see cref="RewriteOptions"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "Apache mod_rewrite"

{
public class ChangeEnvironmentPreAction : PreAction
public class ChangeEnvironmentPreAction : UrlAction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also rename the class "ChangeEnvironmentPreAction" => "ChangeEnvironmentAction"?

@natemcmaster
Copy link
Contributor

@jkotalik
Copy link
Contributor Author

🆙 📅

{
public class ChangeEnvironmentPreAction : PreAction
public class ChangeEnvironmentPreAction : UrlAction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: sync class name to filename. => "ChangeEnvironmentAction"

@natemcmaster
Copy link
Contributor

LGTM.

@jkotalik
Copy link
Contributor Author

jkotalik commented Aug 30, 2016

I found a bug for flags, didn't check for the OR flag. Just going to package it here

@muratg
Copy link
Contributor

muratg commented Aug 30, 2016

:shipit: from the naming point of view. @natemcmaster or @Tratcher should give the final sign-off.

@@ -81,6 +80,7 @@ public override void ApplyRule(RewriteContext context)
else
{
request.Path = PathString.FromUriComponent(ForwardSlash + result);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: delete empty line

@natemcmaster
Copy link
Contributor

:shipit:

@jkotalik jkotalik merged commit af2c1ac into dev Aug 30, 2016
@jkotalik jkotalik deleted the ZestyBread/XML branch August 30, 2016 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants