T.Pipes.SourceGeneration
5.2.1
See the version list below for details.
dotnet add package T.Pipes.SourceGeneration --version 5.2.1
NuGet\Install-Package T.Pipes.SourceGeneration -Version 5.2.1
<PackageReference Include="T.Pipes.SourceGeneration" Version="5.2.1" />
<PackageVersion Include="T.Pipes.SourceGeneration" Version="5.2.1" />
<PackageReference Include="T.Pipes.SourceGeneration" />
paket add T.Pipes.SourceGeneration --version 5.2.1
#r "nuget: T.Pipes.SourceGeneration, 5.2.1"
#:package T.Pipes.SourceGeneration@5.2.1
#addin nuget:?package=T.Pipes.SourceGeneration&version=5.2.1
#tool nuget:?package=T.Pipes.SourceGeneration&version=5.2.1
T.Pipes
A wrapper for H.Pipes For Surrogate implementation and other things too.
Features
- Incremental Code Generator for
interface to commandandcommand to interfaceboilerplate using Attributes (GeneratedFunctionscan 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
SurrogateProcessWrapperto start/stop a surrogate safely (it onlykillsit 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
BaseClasswhich allow to also dispose onLifetimeCancellationtoken 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.Testto 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.
PipeUseWill Use the actualTargetimplmentation and make the callback act like an adapter for properties/methods/eventsPipeServerWill 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.
Startingfirst ensures the previous instance of the process isStoppedthen callsStarton the Process.Stoppingthe process tries to send theCloseMainWindow, and then awaits graceful close, if the timeout will expireKillis called on the process.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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 | 271 | 2/21/2024 |
| 5.3.4 | 246 | 2/21/2024 |
| 5.3.3 | 200 | 2/19/2024 |
| 5.3.2 | 201 | 2/14/2024 |
| 5.3.1 | 217 | 2/14/2024 |
| 5.3.0 | 170 | 2/14/2024 |
| 5.2.7 | 241 | 2/13/2024 |
| 5.2.6 | 188 | 2/13/2024 |
| 5.2.5 | 221 | 2/13/2024 |
| 5.2.4 | 207 | 2/13/2024 |
| 5.2.3 | 238 | 2/13/2024 |
| 5.2.2 | 234 | 2/13/2024 |
| 5.2.1 | 214 | 2/12/2024 |
| 5.2.0 | 240 | 2/12/2024 |
| 5.1.6 | 206 | 2/2/2024 |
| 5.1.5 | 204 | 2/2/2024 |
| 5.1.4 | 198 | 2/2/2024 |
| 5.1.3 | 212 | 2/2/2024 |
| 5.1.2 | 165 | 2/2/2024 |
| 5.1.1 | 218 | 2/1/2024 |
| 5.1.0 | 189 | 2/1/2024 |
| 5.0.3 | 223 | 1/29/2024 |
| 5.0.2 | 218 | 1/29/2024 |
| 5.0.1 | 235 | 1/29/2024 |
| 5.0.0 | 228 | 1/18/2024 |
| 4.0.6 | 241 | 1/17/2024 |
| 4.0.5 | 224 | 1/12/2024 |
| 4.0.4 | 255 | 1/12/2024 |
| 4.0.3 | 226 | 12/22/2023 |
| 4.0.2 | 225 | 12/19/2023 |
| 4.0.1 | 221 | 12/19/2023 |
| 4.0.0 | 195 | 12/18/2023 |
| 3.4.2 | 255 | 12/15/2023 |
| 3.4.1 | 166 | 12/14/2023 |
| 3.4.0 | 185 | 12/13/2023 |
| 3.3.7 | 257 | 12/11/2023 |
| 3.3.6 | 187 | 12/11/2023 |
| 3.3.4 | 229 | 12/6/2023 |
| 3.3.3 | 206 | 12/6/2023 |
| 3.2.3 | 193 | 12/6/2023 |
| 3.2.2 | 234 | 12/6/2023 |
| 3.2.1 | 237 | 12/6/2023 |
| 3.1.0 | 210 | 12/5/2023 |
| 3.0.1 | 255 | 12/4/2023 |
| 3.0.0 | 169 | 12/1/2023 |
| 2.4.0 | 186 | 11/29/2023 |
| 2.3.2 | 200 | 11/29/2023 |
| 2.3.1 | 185 | 11/28/2023 |
| 2.3.0 | 211 | 11/28/2023 |
| 2.2.3 | 204 | 11/27/2023 |
| 2.2.2 | 174 | 11/27/2023 |
| 2.1.2 | 208 | 11/27/2023 |
| 2.1.1 | 189 | 11/27/2023 |
| 2.1.0 | 200 | 11/27/2023 |
| 2.0.1 | 195 | 11/27/2023 |
| 2.0.0 | 220 | 11/27/2023 |
| 1.2.0 | 202 | 11/27/2023 |
| 1.1.2 | 189 | 11/27/2023 |
| 1.1.1 | 220 | 11/24/2023 |
| 1.0.0 | 232 | 11/23/2023 |