Skip to content

Commit bc68333

Browse files
committed
ValueTask compat
1 parent 411b70f commit bc68333

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

Core.Arango.DataProtection/ArangoXmlRepository.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public ArangoXmlRepository(IServiceProvider services, ILoggerFactory loggerFacto
3131
try
3232
{
3333
if (!_context.Database.ExistAsync(_database).Result)
34-
_context.Database.CreateAsync(_database).Wait();
34+
_context.Database.CreateAsync(_database).AsTask().Wait();
3535

3636
if (!_context.Collection.ExistAsync(_database, collection).Result)
37-
_context.Collection.CreateAsync(_database, _collection, ArangoCollectionType.Document).Wait();
37+
_context.Collection.CreateAsync(_database, _collection, ArangoCollectionType.Document).AsTask().Wait();
3838
}
3939
catch (Exception e)
4040
{
@@ -62,7 +62,7 @@ public void StoreElement(XElement element, string friendlyName)
6262
Xml = element.ToString(SaveOptions.DisableFormatting)
6363
};
6464

65-
_context.Document.CreateAsync(_database, _collection, newKey).Wait();
65+
_context.Document.CreateAsync(_database, _collection, newKey).AsTask().Wait();
6666
}
6767

6868
private static XElement TryParseKeyXml(string xml, ILogger logger)

Core.Arango.DataProtection/Core.Arango.DataProtection.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Core.Arango" Version="3.11.8" />
23+
<PackageReference Include="Core.Arango" Version="3.12.0" />
2424
</ItemGroup>
2525

2626
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">

Core.Arango.DevExtreme.Tests/Core.Arango.DevExtreme.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1010
<PackageReference Include="xunit" Version="2.9.2" />
1111
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1212
<PrivateAssets>all</PrivateAssets>

Core.Arango.DevExtreme/Core.Arango.DevExtreme.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Core.Arango" Version="3.11.8" />
24+
<PackageReference Include="Core.Arango" Version="3.12.0" />
2525
<PackageReference Include="DevExtreme.AspNet.Data" Version="3.0.0" />
2626
</ItemGroup>
2727

Core.Arango.Migration.Tests/Core.Arango.Migration.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1010
<PackageReference Include="xunit" Version="2.9.2" />
1111
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Core.Arango.Migration/Core.Arango.Migration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Core.Arango" Version="3.11.8" />
24+
<PackageReference Include="Core.Arango" Version="3.12.0" />
2525
</ItemGroup>
2626

2727
<ItemGroup>

Core.Arango.Serilog/ArangoSerilogSink.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ArangoSerilogSink(
2828
try
2929
{
3030
if (!_arango.Database.ExistAsync(_database).Result)
31-
_arango.Database.CreateAsync(_database).Wait();
31+
_arango.Database.CreateAsync(_database).AsTask().Wait();
3232

3333
if (!_arango.Collection.ExistAsync(_database, collection).Result)
3434
_arango.Collection.CreateAsync(_database, new ArangoCollection
@@ -38,7 +38,7 @@ public ArangoSerilogSink(
3838
{
3939
Type = ArangoKeyType.Padded
4040
}
41-
}).Wait();
41+
}).AsTask().Wait();
4242
}
4343
catch (Exception)
4444
{

Core.Arango.Serilog/Core.Arango.Serilog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Core.Arango" Version="3.11.8" />
24+
<PackageReference Include="Core.Arango" Version="3.12.0" />
2525
<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="5.0.0" />
2626
</ItemGroup>
2727

0 commit comments

Comments
 (0)