Skip to content

Commit

Permalink
expose configuration helper for azuredevops
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan G committed Jan 3, 2020
1 parent 537ed8d commit 5387985
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Config.Net/ConfigurationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,17 @@ public static ConfigurationBuilder<TInterface> UseCommandLineArgs<TInterface>(th
builder.UseConfigStore(new CommandLineConfigStore(null, false, parameterNameToPosition));
return builder;
}

public static ConfigurationBuilder<TInterface> UseAzureDevOpsVariableSet<TInterface>(
this ConfigurationBuilder<TInterface> builder,
string organisationName,
string projectName,
string personalAccessToken,
string variableGroupId)
where TInterface : class
{
builder.UseConfigStore(new AzureDevOpsVariableSetConfigStore(organisationName, projectName, personalAccessToken, variableGroupId));
return builder;
}
}
}

0 comments on commit 5387985

Please sign in to comment.