update many projects to .NET Standard 2.0

This commit is contained in:
schedpas
2020-09-25 09:49:03 +02:00
parent 9feaf658be
commit 1f9114dc02
37 changed files with 21 additions and 1274 deletions

View File

@@ -2,7 +2,6 @@
using System.Collections.Generic;
using global::System.IO.Pipes;
using System.Threading.Tasks;
using global::Pilz.Threading;
namespace Pilz.IO
{
@@ -11,8 +10,6 @@ namespace Pilz.IO
private PipeStream pipeStream;
private byte[] _Buf = new byte[1024];
public bool RaiseEventsGui { get; set; } = true;
public ManagedPipeClient(string pipeName) : this(pipeName, ".")
{
}
@@ -55,15 +52,7 @@ namespace Pilz.IO
int bytesCount = pipeStream.EndRead(ar);
if (bytesCount == 0) // leere Datenübermittlung signalisiert Verbindungsabbruch
{
if (RaiseEventsGui)
{
CrossThreadsInvokeing.RunGui(Dispose);
}
else
{
Dispose();
}
Dispose();
return;
}
@@ -78,14 +67,7 @@ namespace Pilz.IO
}
var deargs = new DataEventArgs(list.ToArray());
if (RaiseEventsGui)
{
CrossThreadsInvokeing.RunGui(OnRetriveData, deargs);
}
else
{
OnRetriveData(deargs);
}
OnRetriveData(deargs);
pipeStream.BeginRead(_Buf, 0, _Buf.Length, EndRead, null);
}