-
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.
Fix incorrect behavior when using false value.
Improved weighting when choosing correct overload. Added more tests and improved test naming. Renamed extension classes to identify the library. Run Code Cleanup.
- Loading branch information
Donn Relacion
committed
Jul 3, 2022
1 parent
8ad4650
commit 37e9e65
Showing
47 changed files
with
2,934 additions
and
2,943 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
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,27 +1,30 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"Services": { | ||
"Logging": true, | ||
"Hsts": { | ||
"ExcludedHosts": { | ||
"Clear": true | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"Services": { | ||
"Logging": true, | ||
"Hsts": { | ||
"Preload": true, | ||
"IncludeSubDomains": true, | ||
"MaxAge": "356.00:00:00" | ||
}, | ||
"Preload": true, | ||
"IncludeSubDomains": true, | ||
"MaxAge": "356.00:00:00" | ||
}, | ||
"Configure<Microsoft.AspNetCore.Builder.CookiePolicyOptions>": { | ||
"HttpOnly": "Always", | ||
"Secure": "Always" | ||
}, | ||
"Controllers": true, | ||
"EndpointsApiExplorer": true, | ||
"SwaggerGen": true | ||
} | ||
"Configure<Microsoft.AspNetCore.Builder.CookiePolicyOptions>": { | ||
"HttpOnly": "Always", | ||
"Secure": "Always" | ||
}, | ||
"Controllers": true, | ||
"EndpointsApiExplorer": true, | ||
"SwaggerGen": true, | ||
"OpenTelemetryTracing": { | ||
"AspNetCoreInstrumentation": true, | ||
"HttpClientInstrumentation": true, | ||
"SqlClientInstrumentation": true, | ||
"JaegerExporter": true | ||
} | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
...onfigurationProcessor.AspNetCore/ConfigurationProcessorWebApplicationBuilderExtensions.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,27 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// Copyright (c) almostchristian. All rights reserved. | ||
// ------------------------------------------------------------------------------------------------- | ||
|
||
using Microsoft.AspNetCore.Builder; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection | ||
{ | ||
/// <summary> | ||
/// Contains extension methods. | ||
/// </summary> | ||
public static class ConfigurationProcessorWebApplicationBuilderExtensions | ||
{ | ||
/// <summary> | ||
/// Adds services from configuration. | ||
/// </summary> | ||
/// <param name="builder">The application builder.</param> | ||
/// <param name="servicesSection">The config section that contains the services.</param> | ||
/// <returns>The <paramref name="builder"/> for chaining.</returns> | ||
public static WebApplicationBuilder AddServicesFromConfiguration(this WebApplicationBuilder builder, string servicesSection) | ||
{ | ||
ArgumentNullException.ThrowIfNull(builder); | ||
builder.Services.AddFromConfiguration(builder.Configuration, servicesSection); | ||
return builder; | ||
} | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
src/ConfigurationProcessor.AspNetCore/WebApplicationBuilderExtensions.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
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.