-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
OCC-245: Update OC preview version and fix breaking changes
- Loading branch information
Showing
24 changed files
with
237 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
Lombiq.HelpfulLibraries.AspNetCore/Localization/LocalizedHtmlStringConverter.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#nullable enable | ||
|
||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Http.Extensions; | ||
using System.Collections.Generic; | ||
using System.Text.Json; | ||
|
||
namespace Lombiq.HelpfulLibraries.AspNetCore.Mvc; | ||
|
||
/// <summary> | ||
/// A simplified intermediate type that can be used to debug <see cref="HttpRequest"/>. | ||
/// </summary> | ||
public record HttpRequestInfo( | ||
string Url, | ||
string? ContentType, | ||
IHeaderDictionary Headers, | ||
IDictionary<string, string> Form, | ||
IRequestCookieCollection Cookies) | ||
{ | ||
public HttpRequestInfo(HttpRequest request) | ||
: this( | ||
request.GetDisplayUrl(), | ||
request.ContentType, | ||
request.Headers, | ||
request.HasFormContentType ? | ||
request.Form.ToDictionaryIgnoreCase(pair => pair.Key, pair => pair.Value.ToString()) : | ||
new Dictionary<string, string>(), | ||
request.Cookies) | ||
{ | ||
} | ||
|
||
public override string ToString() => $"HTTP Request at \"{Url}\""; | ||
|
||
public string ToJson() => JsonSerializer.Serialize(this); | ||
|
||
public static string? ToJson(HttpRequest? request) => request == null ? null : new HttpRequestInfo(request).ToJson(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
Lombiq.HelpfulLibraries.OrchardCore/Environment/ShellFeaturesManagerExtensions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.