-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDED: Razor extension project files and classes for rendering Razor …
…pages. ADDED: `Dgmjr.AspNetCore.Razor.csproj` with necessary package references. ADDED: `Dgmjr.AspNetCore.Razor.sln` solution file. ADDED: `LICENSE.md` file with MIT License information. ADDED: `PageModel.cs` and `PageModel<T>.cs` files for base page models. ADDED: `icon.png` file.
- Loading branch information
Showing
38 changed files
with
486 additions
and
87 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,12 @@ | ||
namespace Dgmjr.Configuration.Extensions; | ||
|
||
public static class ConfigurationExtensions | ||
{ | ||
public static string ToJson(this IConfiguration config) | ||
{ | ||
return JsonSerializer.Serialize( | ||
config, | ||
new Jso { WriteIndented = true, Converters = { new ConfigurationJsonConverter() } } | ||
); | ||
} | ||
} |
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,27 @@ | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Dgmjr.Configuration.Extensions; | ||
|
||
public static partial class LoggerExtensions | ||
{ | ||
[LoggerMessage( | ||
1, | ||
LogLevel.Trace, | ||
"Found {Files} JSON files in {Directory} for environment {env}", | ||
EventName = "FilesFound" | ||
)] | ||
public static partial void FilesFound( | ||
this ILogger logger, | ||
int files, | ||
string directory, | ||
string env | ||
); | ||
|
||
[LoggerMessage( | ||
2, | ||
LogLevel.Trace, | ||
"File {Filename}: {Lines} lines", | ||
EventName = "JSONConfigFileRead" | ||
)] | ||
public static partial void JsonConfigFileRead(this ILogger logger, string filename, int lines); | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nfiguration/ConfigurationJsonConverter.cs → ...ration/Json/ConfigurationJsonConverter.cs
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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
namespace Dgmjr.Graph; | ||
// namespace Dgmjr.Graph; | ||
|
||
internal static partial class LoggingExtensions | ||
{ | ||
[LoggerMessage( | ||
EventId = 1, | ||
Level = LogLevel.Information, | ||
Message = "{Method} {Path}", | ||
EventName = nameof(PageVisited) | ||
)] | ||
public static partial void PageVisited( | ||
this ILogger logger, | ||
System.Net.Http.HttpMethod method, | ||
string path | ||
); | ||
// internal static partial class LoggingExtensions | ||
// { | ||
// [LoggerMessage( | ||
// EventId = 1, | ||
// Level = LogLevel.Information, | ||
// Message = "{Method} {Path}", | ||
// EventName = nameof(PageVisited) | ||
// )] | ||
// public static partial void PageVisited( | ||
// this ILogger logger, | ||
// System.Net.Http.HttpMethod method, | ||
// string path | ||
// ); | ||
|
||
[LoggerMessage( | ||
EventId = 1, | ||
Level = LogLevel.Information, | ||
Message = "{Method} {Path}", | ||
EventName = nameof(PageVisited) | ||
)] | ||
public static partial void PageVisited(this ILogger logger, string method, string path); | ||
} | ||
// [LoggerMessage( | ||
// EventId = 1, | ||
// Level = LogLevel.Information, | ||
// Message = "{Method} {Path}", | ||
// EventName = nameof(PageVisited) | ||
// )] | ||
// public static partial void PageVisited(this ILogger logger, string method, string path); | ||
// } |
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.