Skip to content

Commit aa535c5

Browse files
committed
Added 'CreateBinder' method
1 parent 349a877 commit aa535c5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Providers/EnvironmentVariablesProviderExtensions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ public static IEnvValidator CreateValidator(this IEnvironmentVariablesProvider p
2626
public static IEnvReader CreateReader(this IEnvironmentVariablesProvider provider)
2727
=> new EnvReader(provider);
2828

29+
/// <summary>
30+
/// Creates an instance that implements the <see cref="IEnvBinder" /> interface.
31+
/// </summary>
32+
/// <param name="provider">The environment variables provider.</param>
33+
/// <returns>An instance that implements the <see cref="IEnvBinder" /> interface.</returns>
34+
public static IEnvBinder CreateBinder(this IEnvironmentVariablesProvider provider)
35+
=> new EnvBinder(provider);
36+
2937
/// <summary>
3038
/// Converts the environment variables provider to a dictionary.
3139
/// </summary>

0 commit comments

Comments
 (0)