-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from drwatson1/rel-2.2
Rel 2.2
- Loading branch information
Showing
12 changed files
with
78 additions
and
48 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
16 changes: 16 additions & 0 deletions
16
ProjectTemplates/ReferenceProject/Configuration/ApplicationSettings.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Contrib.Extensions.Configuration; | ||
|
||
namespace ReferenceProject.Configuration | ||
{ | ||
public static class ApplicationSettings | ||
{ | ||
public static void AddSettings(this IServiceCollection services) | ||
{ | ||
// Uses AutoBind and SubstituteVariables from https://github.com/drwatson1/configuration-extensions project | ||
services.AddOptions<Settings.Products>() | ||
.AutoBind() | ||
.SubstituteVariables(); | ||
} | ||
} | ||
} |
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 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,8 @@ | ||
namespace ReferenceProject.Settings | ||
{ | ||
public class Products | ||
{ | ||
public string TempFolder { get; set; } | ||
public string BackendServiceUrl { get; set; } | ||
} | ||
} |
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
6 changes: 1 addition & 5 deletions
6
ProjectTemplates/ReferenceProject/appsettings.Development.json
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,11 +1,7 @@ | ||
{ | ||
"Serilog": { | ||
"MinimumLevel": { | ||
"Default": "Debug", | ||
"Override": { | ||
"Microsoft": "Debug", | ||
"System": "Debug" | ||
} | ||
"Default": "Debug" | ||
} | ||
} | ||
} |
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,28 +1,41 @@ | ||
{ | ||
"Serilog": { | ||
"MinimumLevel": { | ||
"Default": "Warning", | ||
"Default": "Information", | ||
"Override": { | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting": "Information", | ||
"System": "Warning" | ||
} | ||
}, | ||
"Filter": [], | ||
"WriteTo": [ | ||
{ | ||
"Name": "File", | ||
"Args": { | ||
"path": "%AppData%/Logs/ReferenceProject.log", | ||
"rollingInterval": "Day", | ||
"buffered": false | ||
"rollOnFileSizeLimit": true, | ||
"fileSizeLimitBytes": 10485760, | ||
"retainedFileCountLimit": 10, | ||
"buffered": false, | ||
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message:lj}{NewLine}{Exception}" | ||
} | ||
}, | ||
{ | ||
"Name": "Console" | ||
"Name": "Console", | ||
"Args": { | ||
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] {Message:lj}{NewLine}{Exception}" | ||
} | ||
} | ||
], | ||
"Enrich": [ | ||
"FromLogContext" | ||
] | ||
}, | ||
"Products": { | ||
"TempFolder": "%TEMP%", | ||
"BackendServiceUrl": "http://%gateway%/backend" | ||
}, | ||
"AllowedHosts": "*", | ||
"CoolServiceEndpoint": "http://%ENDPOINT_HOST%/cool", | ||
"AnotherServiceEndpoint": "http://%ENDPOINT_HOST%/another", | ||
"Urls": "http://localhost:5000" | ||
} |
Binary file modified
BIN
-1.59 KB
(94%)
...s/ReferenceProjectVSIX/ProjectTemplates/CSharp/.NET Core/ASP.Net Core RESTful Service.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
ProjectTemplates/ReferenceProjectVSIX/source.extension.vsixmanifest
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