Skip to content

Commit

Permalink
publish 2.0.0-rc5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjeff committed Sep 20, 2021
1 parent d4253a7 commit ca872cb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.0.0-rc4.3</Version>
<Version>2.0.0-rc5.0</Version>
<Copyright>Copyright © secs4net 2021</Copyright>
<RepositoryUrl>https://github.com/mkjeff/secs4net</RepositoryUrl>
<Authors>mkjeff</Authors>
Expand Down
12 changes: 0 additions & 12 deletions test/Benchmarks/AsyncHelper.cs

This file was deleted.

14 changes: 7 additions & 7 deletions test/Benchmarks/RequestResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ public void Setup()
{
var pipe1 = new Pipe(new PipeOptions(useSynchronizationContext: false));
var pipe2 = new Pipe(new PipeOptions(useSynchronizationContext: false));
var pipeConnection1 = new PipeConnection(decoderReader: pipe1.Reader, decoderInput: pipe2.Writer);
var pipeConnection2 = new PipeConnection(decoderReader: pipe2.Reader, decoderInput: pipe1.Writer);
var connection1 = new PipeConnection(decoderReader: pipe1.Reader, decoderInput: pipe2.Writer);
var connection2 = new PipeConnection(decoderReader: pipe2.Reader, decoderInput: pipe1.Writer);

var options = Options.Create(new SecsGemOptions
{
DeviceId = 0,
});
var logger = new Logger();
_secsGem1 = new SecsGem(options, pipeConnection1, logger);
_secsGem2 = new SecsGem(options, pipeConnection2, logger);
_secsGem1 = new SecsGem(options, connection1, logger);
_secsGem2 = new SecsGem(options, connection2, logger);

_cts = new CancellationTokenSource();
_ = pipeConnection1.StartAsync(_cts.Token);
_ = pipeConnection2.StartAsync(_cts.Token);
_ = AsyncHelper.LongRunningAsync(async () =>
Task.Run(()=> connection1.StartAsync(_cts.Token));
Task.Run(() => connection2.StartAsync(_cts.Token));
Task.Run(async () =>
{
await foreach (var a in _secsGem2.GetPrimaryMessageAsync(_cts.Token))
{
Expand Down
2 changes: 1 addition & 1 deletion test/Secs4Net.UnitTests/ChunkedMemory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;

Expand Down

0 comments on commit ca872cb

Please sign in to comment.