Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="BullOak.Repositories.EventStore" Version="3.0.0-rc1" />
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="BullOak.Repositories.EventStore" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EventStore.Client.Grpc.Operations" Version="22.0.0" />
<PackageReference Include="EventStore.Client.Grpc.ProjectionManagement" Version="22.0.0" />
<PackageReference Include="EventStore.Client.Grpc.Streams" Version="22.0.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.53.0" />
<PackageReference Include="EventStore.Client.Grpc.Operations" />
<PackageReference Include="EventStore.Client.Grpc.ProjectionManagement" />
<PackageReference Include="EventStore.Client.Grpc.Streams" />
<!-- avoids the buld to fail https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/10.0/asyncenumerable#recommended-action -->
<PackageReference Include="System.Linq.Async" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using EventStore.Client;
using EventStore.Client.Projections;

namespace BullOak.Repositories.EventStore.ConsoleTestEventStoreClient
{
Expand Down Expand Up @@ -65,7 +62,7 @@ static async Task Main(string[] args)
var isSuccess = await readResult.ReadState;
var events = await readResult.Where(x=> x.Event != null).ToListAsync();


var eventCount = events.Count;

var readResultStream = client.ReadStreamAsync(Direction.Forwards, "dokimi-2", StreamPosition.Start);
Expand Down Expand Up @@ -107,4 +104,4 @@ await client.AppendToStreamAsync(idForTombstoneTest, StreamRevision.FromInt64(-1
// Softdeleted streams write with expected stream revision -1
// Categories throw if tried to read when they are empty
// Categories only get created and populated with data writter AFTER they're created
// Tombstoned
// Tombstoned
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>9.0</LangVersion>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
Expand All @@ -11,26 +11,17 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EventStore.Client.Grpc" Version="22.0.0" />
<PackageReference Include="EventStore.Client.Grpc.Operations" Version="22.0.0" />
<PackageReference Include="EventStore.Client.Grpc.ProjectionManagement" Version="22.0.0" />
<PackageReference Include="EventStore.Client.Grpc.Streams" Version="22.0.0" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.53.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OneOf" Version="3.0.243" />
<PackageReference Include="Polly" Version="7.2.3" />
<PackageReference Include="BullOak.Repositories" Version="3.0.0-alpha-003" />
<PackageReference Include="SpecFlow.xUnit" Version="3.9.74" />
<PackageReference Include="System.Collections.Immutable" Version="7.0.0" />
<PackageReference Include="xunit.runner.console" Version="2.4.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="EventStore.Client.Grpc.Operations" />
<PackageReference Include="EventStore.Client.Grpc.ProjectionManagement" />
<PackageReference Include="EventStore.Client.Grpc.Streams" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="OneOf" />
<PackageReference Include="Polly" />
<PackageReference Include="BullOak.Repositories" />
<PackageReference Include="SpecFlow.xUnit" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Loading