Skip to content
Snippets Groups Projects
Commit 7904c080 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix: Configuration is now added to the ConsulClient (coscine/issues#132)

parent 4ac9bfad
No related branches found
No related tags found
2 merge requests!13Product/119 refine vue web part,!12Topic/132 config properties
......@@ -40,6 +40,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http.WebRequest" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
......
......@@ -17,7 +17,6 @@ namespace Coscine.Configuration.Tests
[Test]
public void ConsulConfigurationAsyncTest()
{
DefaultTester.ConfigurationAsyncTest(_configuration);
}
......
......@@ -30,6 +30,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<ItemGroup>
<Reference Include="Consul, Version=0.7.2.6, Culture=neutral, PublicKeyToken=20a6ad9a81df1d95, processorArchitecture=MSIL">
<HintPath>..\packages\Consul.0.7.2.6\lib\net45\Consul.dll</HintPath>
......
......@@ -31,7 +31,7 @@ namespace Coscine.Configuration
Value = value
};
using (var client = new ConsulClient())
using (var client = new ConsulClient(Configuration))
{
var putAttempt = await client.KV.Put(putPair);
......@@ -41,7 +41,7 @@ namespace Coscine.Configuration
public async Task<byte[]> GetAsync(string key)
{
using (var client = new ConsulClient())
using (var client = new ConsulClient(Configuration))
{
var getPair = await client.KV.Get(key);
......@@ -72,7 +72,7 @@ namespace Coscine.Configuration
public async Task<string[]> KeysAsync(string prefix)
{
using (var client = new ConsulClient())
using (var client = new ConsulClient(Configuration))
{
var keys = await client.KV.Keys(prefix);
return keys.Response;
......@@ -81,7 +81,7 @@ namespace Coscine.Configuration
public async Task<bool> DeleteAsync(string key)
{
using (var client = new ConsulClient())
using (var client = new ConsulClient(Configuration))
{
var deleteRequest = await client.KV.Delete(key);
return deleteRequest.Response;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment