You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,19 @@ Simple IPC between .net and .core
4
4
This is a lightversion of a IPC to be used on either .net or .core and even mixed if you like.
5
5
The "fix" for the conversion is a hack and might not work for later releases.
6
6
7
-
As for 10.05.2020 it works as expected between netstandard 2.0 and .net 4.7.2.
7
+
As for 20.09.2020 it works as expected between netstandard 2.0 and .net 4.7.2.
8
8
9
9
Class is based on KrakenIPC: https://github.com/darksody/KrakenIPC and Full Duplex Pipes: https://www.codeproject.com/Articles/1179195/Full-Duplex-Asynchronous-Read-Write-with-Named-Pip
10
10
11
-
12
11
## Pipes are old, why did you mesh this up
13
12
I had a asp.core application that needed to get data from a .net472 application and the only IPC that actually worked was gRPC ( https://grpc.io/ ).
14
13
gRPC was overkill for my project so I wanted something simpler and tiny.
15
14
15
+
#### Updated 20.09.2020 ####
16
+
Added a custom delay for the time to wait for server data for the client.
17
+
Changed return method to throw an exception instead of null, to make it easier to handle timeouts in the future.
18
+
Also an event is added, to ensure that you catch everything if you decide to suppress exceptions.
19
+
16
20
## Usage
17
21
Server and Client need to share a common interface.
18
22
```c#
@@ -49,7 +53,7 @@ Note that this pipe only works on localhost
49
53
//Stop server
50
54
handler.Stop();
51
55
}
52
-
catch(Exceptionex)//
56
+
catch(Exceptionex)
53
57
{
54
58
Console.WriteLine(ex.ToString());
55
59
}
@@ -58,20 +62,23 @@ Note that this pipe only works on localhost
58
62
When a client connects it will refer to the same interface.
59
63
After connection are used to receive data from the server
0 commit comments