![]() |
VOOZH | about |
dotnet add package ioctalk-codegen-binary-json-tcp --version 2.5.0
NuGet\Install-Package ioctalk-codegen-binary-json-tcp -Version 2.5.0
<PackageReference Include="ioctalk-codegen-binary-json-tcp" Version="2.5.0" />
<PackageVersion Include="ioctalk-codegen-binary-json-tcp" Version="2.5.0" />Directory.Packages.props
<PackageReference Include="ioctalk-codegen-binary-json-tcp" />Project file
paket add ioctalk-codegen-binary-json-tcp --version 2.5.0
#r "nuget: ioctalk-codegen-binary-json-tcp, 2.5.0"
#:package ioctalk-codegen-binary-json-tcp@2.5.0
#addin nuget:?package=ioctalk-codegen-binary-json-tcp&version=2.5.0Install as a Cake Addin
#tool nuget:?package=ioctalk-codegen-binary-json-tcp&version=2.5.0Install as a Cake Tool
Combines dependency injection and remote procedure calls for enterprise architecture implementations without technical dependencies.
New slightly changed registration API. Uses .net code generator for communication proxy auto creation and dependency mapping. This is a performance improvement by eliminating runtime code generation and runtime assembly type scanning. The new binary wire format and binary message serializer reduces the transfer size as well.
var localShare = new LocalShareContext();
var tcpMyService = new TcpCommunicationController(new ShortWireFraming(), new JsonMessageSerializer());
var compositionHost = new TalkCompositionHost(localShare, "MyService");
// Maps all transfer interfaces to local implementations or source generated auto implementations
compositionHost.RegisterAutoGeneratedProxyInterfaceMappings();
// Creates a instance of MyServiceImplementation per session
compositionHost.RegisterLocalSessionService<IMyService, MyServiceImplementation>();
// Creates a instance of source generated IMyClientService proxy implementation per session
compositionHost.RegisterRemoteService<IMyClientService>();
// Creates a single instance of MyInternalStuffService (LocalShareContext singleton boundary)
compositionHost.RegisterLocalSharedService<IMyInternalStuffService, MyInternalStuffService>();
compositionHost.InitGenericCommunication(tcpMyService);
// bind to tcp port 14341
tcpMyService.InitService(14341);
If you need to connect to ioctalk legacy wire format services use:
new TcpCommunicationController(new LegacyWireFraming(), new JsonMessageSerializer())
| ❗ BinaryMessageSerializer is not production ready yet! Binary layout may change due to bugfixes! |
|---|
How can you react to distributed events (remote endpoint session changes) in your business code without having a dependency to the underlying transfer stack? The ioctalk solution is "constructor out delegate" injection and convention:
Functional service implementation assembly:
public class MySuperService : IMySuperService
{
public MySuperService(out Action<IMySupremeRemoteClientService> clientServiceCreated,
out Action<IMySupremeRemoteClientService> clientServiceTerminated)
{
clientServiceCreated = OnClientServiceCreated;
clientServiceTerminated = OnClientServiceTerminated;
}
private void OnClientServiceCreated(IMySupremeRemoteClientService client)
{
// available remote (or local - depending on the orchestration) client service instance
}
private void OnClientServiceTerminated(IMySupremeRemoteClientService client)
{
}
}
By convention the ioctalk dependency injection container needs a "Created" or "Terminated" at the end of the method name.
If your service implementation only manages the single session instance, you can also use an IDisposable implementation to react on session termination.
Be aware of not calling remote services in your constructor service implementation. Use constructor parameter (out Action<IMyService> myselfCreated) for remote interaction after the session is ready (all session instances are created).
Now you have separated your business code from any technical dependency. You can use it with ioctalk, within a unit test or some future transfer technology.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on ioctalk-codegen-binary-json-tcp:
| Package | Downloads |
|---|---|
|
ioctalk-insight-webhost
IOC-Talk insight web host main library. |
|
|
ioctalk-interception-callmonitoring-insight
IOC-Talk interception source generator for monitoring service calls featuring the IOCTalk.Insight web frontend. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.0 | 142 | 4/27/2026 |
| 2.4.46 | 299 | 1/20/2026 |
| 2.4.45 | 231 | 12/23/2025 |
| 2.4.44 | 322 | 12/18/2025 |
| 2.4.42 | 255 | 11/7/2025 |
| 2.4.40 | 242 | 11/4/2025 |
| 2.4.39 | 392 | 9/16/2025 |
| 2.4.21 | 305 | 8/27/2025 |
| 2.4.17 | 461 | 3/5/2025 |
| 2.4.16 | 277 | 2/14/2025 |
| 2.4.15 | 235 | 2/13/2025 |
| 2.4.14 | 767 | 12/18/2024 |
| 2.4.10 | 228 | 11/26/2024 |
| 2.4.9 | 455 | 9/13/2024 |
| 2.4.8 | 246 | 9/12/2024 |
| 2.4.5 | 487 | 3/25/2024 |
| 2.4.4 | 275 | 2/28/2024 |
| 2.4.3 | 293 | 2/21/2024 |
| 2.4.2 | 266 | 2/15/2024 |
| 2.4.0 | 320 | 1/19/2024 |
.NET Standard 2.1 version using improved tcp lib, binary and json serialization and proxy code generation at build time.