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

Commit bc0732f

Browse files
committed
Code cleanup.
1 parent ddc7f08 commit bc0732f

File tree

5 files changed

+10
-20
lines changed

5 files changed

+10
-20
lines changed

src/Microsoft.AspNet.Http/HostString.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Microsoft.AspNet.Http
99
{
1010
/// <summary>
11-
/// Represents the host portion of a Uri can be used to construct Uri's properly formatted and encoded for use in
11+
/// Represents the host portion of a URI can be used to construct URI's properly formatted and encoded for use in
1212
/// HTTP headers.
1313
/// </summary>
1414
public struct HostString : IEquatable<HostString>
@@ -47,7 +47,7 @@ public override string ToString()
4747
/// Any Unicode is converted to punycode. IPv6 addresses will have brackets added if they are missing.
4848
/// </summary>
4949
/// <returns></returns>
50-
[SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Justification = "Only the host segment of a uri is returned.")]
50+
[SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Justification = "Only the host segment of a URI is returned.")]
5151
public string ToUriComponent()
5252
{
5353
int index;
@@ -82,12 +82,12 @@ public string ToUriComponent()
8282
}
8383

8484
/// <summary>
85-
/// Creates a new HostString from the given uri component.
85+
/// Creates a new HostString from the given URI component.
8686
/// Any punycode will be converted to Unicode.
8787
/// </summary>
8888
/// <param name="uriComponent"></param>
8989
/// <returns></returns>
90-
[SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Only the host segment of a uri is provided.")]
90+
[SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Only the host segment of a URI is provided.")]
9191
public static HostString FromUriComponent(string uriComponent)
9292
{
9393
if (!string.IsNullOrEmpty(uriComponent))

src/Microsoft.AspNet.Http/PathString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public string ToUriComponent()
7474
/// </summary>
7575
/// <param name="uriComponent">The escaped path as it appears in the URI format.</param>
7676
/// <returns>The resulting PathString</returns>
77-
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Requirements not compatible with Uri processing")]
77+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1057:StringUriOverloadsCallSystemUriOverloads", Justification = "Requirements not compatible with URI processing")]
7878
public static PathString FromUriComponent(string uriComponent)
7979
{
8080
// REVIEW: what is the exactly correct thing to do?

src/Microsoft.AspNet.PipelineCore/Infrastructure/ParsingHelpers.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Linq;
99
using Microsoft.AspNet.Http;
1010
using Microsoft.AspNet.Http.Infrastructure;
11-
using Microsoft.AspNet.PipelineCore.Collections;
1211

1312
namespace Microsoft.AspNet.PipelineCore.Infrastructure
1413
{
@@ -507,7 +506,7 @@ public override string ToString()
507506
}
508507
}
509508

510-
internal static partial class ParsingHelpers
509+
internal static class ParsingHelpers
511510
{
512511
private static readonly Action<string, string, object> AddCookieCallback = (name, value, state) =>
513512
{
@@ -592,10 +591,7 @@ internal static void ParseDelimited(string text, char[] delimiters, Action<strin
592591
scanIndex = delimiterIndex + 1;
593592
}
594593
}
595-
}
596594

597-
internal static partial class ParsingHelpers
598-
{
599595
public static string GetHeader(IDictionary<string, string[]> headers, string key)
600596
{
601597
string[] values = GetHeaderUnmodified(headers, key);
@@ -783,10 +779,7 @@ public static void AppendHeaderUnmodified(IDictionary<string, string[]> headers,
783779
SetHeaderUnmodified(headers, key, existing.Concat(values));
784780
}
785781
}
786-
}
787782

788-
internal static partial class ParsingHelpers
789-
{
790783
private static readonly Action<string, string, object> AppendItemCallback = (name, value, state) =>
791784
{
792785
var dictionary = (IDictionary<string, List<String>>)state;
@@ -833,10 +826,7 @@ internal static string[] GetUnmodifiedValues(IDictionary<string, string[]> store
833826
string[] values;
834827
return store.TryGetValue(key, out values) ? values : null;
835828
}
836-
}
837829

838-
internal static partial class ParsingHelpers
839-
{
840830
//internal static string GetHost(HttpRequest request)
841831
//{
842832
// IHeaderDictionary headers = request.Headers;

src/Microsoft.AspNet.WebUtilities/ParsingHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Microsoft.AspNet.WebUtilities
1010
{
11-
internal static partial class ParsingHelpers
11+
internal static class ParsingHelpers
1212
{
1313
internal static void ParseDelimited(string text, char[] delimiters, Action<string, string, object> callback, object state)
1414
{

src/Microsoft.AspNet.WebUtilities/QueryHelpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ namespace Microsoft.AspNet.WebUtilities
55
public static class QueryHelpers
66
{
77
/// <summary>
8-
/// Append the given query key and value to the uri.
8+
/// Append the given query key and value to the URI.
99
/// </summary>
10-
/// <param name="uri">The base uri.</param>
10+
/// <param name="uri">The base URI.</param>
1111
/// <param name="name">The name of the query key.</param>
1212
/// <param name="value">The query value.</param>
13-
/// <returns>The combine result.</returns>
13+
/// <returns>The combined result.</returns>
1414
public static string AddQueryString([NotNull] string uri, [NotNull] string name, [NotNull] string value)
1515
{
1616
bool hasQuery = uri.IndexOf('?') != -1;

0 commit comments

Comments
 (0)