T.Pipes
5.0.3
See the version list below for details.
dotnet add package T.Pipes --version 5.0.3
NuGet\Install-Package T.Pipes -Version 5.0.3
<PackageReference Include="T.Pipes" Version="5.0.3" />
paket add T.Pipes --version 5.0.3
#r "nuget: T.Pipes, 5.0.3"
// Install T.Pipes as a Cake Addin #addin nuget:?package=T.Pipes&version=5.0.3 // Install T.Pipes as a Cake Tool #tool nuget:?package=T.Pipes&version=5.0.3
T.Pipes
A wrapper for H.Pipes For Surrogate implementation and other things too.
Features
- Incremental Code Generator for
interface to command
andcommand to interface
boilerplate using Attributes (GeneratedFunctions
can be only overriden staticly, but be warned to apply that correcly as there is one Collection per Unique generic type) - A semi prepared Newtonsoft.Json serialzer for remoting (using deprecated binary serializer when needed)
- A simple
SurrogateProcessWrapper
to start/stop a surrogate safely (it onlykills
it after timeout, if possible use disconnect or other packet as a termination signal, the natural exit will be awaited for the timeout duration) - Pipe ConnectionBase/Client/Server/CallbackBase as wrappers for
H.Pipes
- Delegating Pipe Client/Server/Callback implementation for Interface delegation
- Spawning Pipe Client/Server/Callback implementation to Produce Delegating Pipes on demand
- Pipe/Callback objects derive from
BaseClass
which allow to also dispose onLifetimeCancellation
token and listen to cancellation events (usefull in no IoC scenarios to handle cascading disposing) - Generic Classes for the most part allowing to create targeted non-generic sealed classes for optimal performace
- Simple example application in
T.Pipes.Test.Client/Server
- A bunch of unit tests
T.Pipes.Test
to assert some of the issues which might arise are handled
More indepth info can be gathered by strolling trough the Code or by reading the XML docs.
Code generator
If you add the Code generator to project, the PipeUse
and PipeServe
attributes will be generating boilerplate for your Delegating Pipe Callback
implementations.
The interface to generate code for must be specified using typeof operator in the attribute parameter. Multiple instances of this attribute are allowed. All Generic types must be Closed.
PipeUse
Will Use the actualTarget
implmentation and make the callback act like an adapter for properties/methods/eventsPipeServer
Will explicityly implement the interface on the callback to avoid collisions and make the callback act like an adapter for properties/methods/events
From the Pipe perspective all calls go trough collected static Functions
property to lookup correct action.
Aliased implementations are visible from the Callback itself.
There is an edge case for any method of Disposing - ideally you just want to dispose the entire Callback/Server/Client/Callback/Target stack nad not just the Target
object itself.
The dispose can be delegated to the target only, but then it is up to the user to handle reuse of pipes and etc., it should be possible thanks to protected Setter on Target
.
Usage example can be found in T.Pipes.Test.Client/Server
.
Delegating Pipe Server/Client/Callback
Abstract classes to build the Interface Delegation upon. Should be ideally implemented by user using a sealed class.
All actual logic lands in Callback
, the Server
/Client
are just managing the pipe.
Spawning Pipe Server/Client/Callback
Abstract classes to create more Delegating Pipes. Should be ideally implemented by user using a sealed class.
All actual logic lands in Callback
, the Server
/Client
are just managing the pipe.
Surrogate Process Wrapper
Is a simple class with start and stop methods.
Starting
first ensures the previous instance of the process isStopped
then callsStart
on the Process.Stopping
the process tries to send theCloseMainWindow
, and then awaits graceful close, if the timeout will expireKill
is called on the process.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- H.Formatters.Newtonsoft.Json (>= 13.0.59)
- H.Pipes (>= 2.0.59)
- T.Pipes.Abstractions (>= 5.0.3)
-
.NETStandard 2.0
- H.Formatters.Newtonsoft.Json (>= 13.0.59)
- H.Pipes (>= 2.0.59)
- T.Pipes.Abstractions (>= 5.0.3)
-
net6.0
- H.Formatters.Newtonsoft.Json (>= 13.0.59)
- H.Pipes (>= 2.0.59)
- T.Pipes.Abstractions (>= 5.0.3)
-
net7.0
- H.Formatters.Newtonsoft.Json (>= 13.0.59)
- H.Pipes (>= 2.0.59)
- T.Pipes.Abstractions (>= 5.0.3)
-
net8.0
- H.Formatters.Newtonsoft.Json (>= 13.0.59)
- H.Pipes (>= 2.0.59)
- T.Pipes.Abstractions (>= 5.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.3.5 | 127 | 2/21/2024 |
5.3.4 | 125 | 2/21/2024 |
5.3.3 | 126 | 2/19/2024 |
5.3.2 | 103 | 2/14/2024 |
5.3.1 | 111 | 2/14/2024 |
5.3.0 | 116 | 2/14/2024 |
5.2.7 | 95 | 2/13/2024 |
5.2.6 | 98 | 2/13/2024 |
5.2.5 | 96 | 2/13/2024 |
5.2.4 | 102 | 2/13/2024 |
5.2.3 | 102 | 2/13/2024 |
5.2.2 | 114 | 2/13/2024 |
5.2.1 | 131 | 2/12/2024 |
5.2.0 | 102 | 2/12/2024 |
5.1.6 | 104 | 2/2/2024 |
5.1.5 | 96 | 2/2/2024 |
5.1.4 | 96 | 2/2/2024 |
5.1.3 | 105 | 2/2/2024 |
5.1.2 | 94 | 2/2/2024 |
5.1.1 | 105 | 2/1/2024 |
5.1.0 | 106 | 2/1/2024 |
5.0.3 | 112 | 1/29/2024 |
5.0.2 | 104 | 1/29/2024 |
5.0.1 | 106 | 1/29/2024 |
5.0.0 | 116 | 1/18/2024 |
4.0.6 | 97 | 1/17/2024 |
4.0.5 | 125 | 1/12/2024 |
4.0.4 | 117 | 1/12/2024 |
4.0.3 | 135 | 12/22/2023 |
4.0.2 | 132 | 12/19/2023 |
4.0.1 | 136 | 12/19/2023 |
4.0.0 | 112 | 12/18/2023 |
3.4.2 | 132 | 12/15/2023 |
3.4.1 | 118 | 12/14/2023 |
3.4.0 | 131 | 12/13/2023 |
3.3.7 | 138 | 12/11/2023 |
3.3.6 | 109 | 12/11/2023 |
3.3.4 | 126 | 12/6/2023 |
3.3.3 | 136 | 12/6/2023 |
3.2.3 | 149 | 12/6/2023 |
3.2.2 | 109 | 12/6/2023 |
3.2.1 | 145 | 12/6/2023 |
3.1.0 | 129 | 12/5/2023 |
3.0.1 | 129 | 12/4/2023 |
3.0.0 | 128 | 12/1/2023 |
2.4.0 | 122 | 11/29/2023 |
2.3.2 | 119 | 11/29/2023 |
2.3.1 | 126 | 11/28/2023 |
2.3.0 | 129 | 11/28/2023 |
2.2.3 | 144 | 11/27/2023 |
2.2.2 | 105 | 11/27/2023 |
2.1.2 | 133 | 11/27/2023 |
2.1.1 | 120 | 11/27/2023 |
2.1.0 | 132 | 11/27/2023 |
2.0.1 | 123 | 11/27/2023 |
2.0.0 | 123 | 11/27/2023 |
1.2.0 | 136 | 11/27/2023 |
1.1.2 | 121 | 11/27/2023 |
1.1.1 | 135 | 11/24/2023 |
1.0.0 | 131 | 11/23/2023 |