update many projects to .NET Standard 2.0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user