{"id":37037499,"url":"https://github.com/bennil/ioctalk","last_synced_at":"2026-01-14T04:27:50.407Z","repository":{"id":38714908,"uuid":"87087723","full_name":"bennil/ioctalk","owner":"bennil","description":"Keep transport technology out of your (microservice) business.","archived":false,"fork":false,"pushed_at":"2025-12-18T10:41:14.000Z","size":3033,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-20T23:14:00.022Z","etag":null,"topics":["dependency","injection","microservice","rpc"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bennil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-03T15:08:24.000Z","updated_at":"2025-12-18T10:41:19.000Z","dependencies_parsed_at":"2024-08-16T08:56:38.770Z","dependency_job_id":null,"html_url":"https://github.com/bennil/ioctalk","commit_stats":{"total_commits":132,"total_committers":4,"mean_commits":33.0,"dds":"0.19696969696969702","last_synced_commit":"c19a18463119192e353ad042db9b1ddcb622a94c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bennil/ioctalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennil%2Fioctalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennil%2Fioctalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennil%2Fioctalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennil%2Fioctalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennil","download_url":"https://codeload.github.com/bennil/ioctalk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennil%2Fioctalk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependency","injection","microservice","rpc"],"created_at":"2026-01-14T04:27:49.693Z","updated_at":"2026-01-14T04:27:50.399Z","avatar_url":"https://github.com/bennil.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IOC-Talk\n\nCombines dependency injection and remote procedure calls for enterprise architecture implementations without technical dependencies.\n\n[*Nuget with ShortWireFraming(), LegacyWireFraming() and the serializers: BinaryMessageSerializer(), JsonMessageSerializer()*](https://www.nuget.org/packages/ioctalk-codegen-binary-json-tcp)\n\n[*Nuget with ShortWireFraming() and BinaryMessageSerializer()*](https://www.nuget.org/packages/ioctalk-codegen-binary-tcp)\n\nUses .net code generator for communication proxy auto creation and dependency mapping.\nThis is a performance improvement by eliminating runtime code generation and runtime assembly type scanning.\nThe new binary wire format and binary message serializer reduces the transfer size as well.\n\n```csharp\nvar localShare = new LocalShareContext();\n\nvar tcpMyService = new TcpCommunicationController(new ShortWireFraming(), new JsonMessageSerializer());\n\nvar compositionHost = new TalkCompositionHost(localShare, \"MyService\");\n\n// Maps all transfer interfaces to local implementations or source generated auto implementations\ncompositionHost.RegisterAutoGeneratedProxyInterfaceMappings();\n\n// Creates a instance of MyServiceImplementation per session\ncompositionHost.RegisterLocalSessionService\u003cIMyService, MyServiceImplementation\u003e();\n\n// Creates a instance of source generated IMyClientService proxy implementation per session\ncompositionHost.RegisterRemoteService\u003cIMyClientService\u003e();\n\n// Creates a single instance of MyInternalStuffService (LocalShareContext singleton boundary)\ncompositionHost.RegisterLocalSharedService\u003cIMyInternalStuffService, MyInternalStuffService\u003e();\n\n\ncompositionHost.InitGenericCommunication(tcpMyService);\n\n// bind to tcp port 14341\ntcpMyService.InitService(14341);\n```\n\n\nIf you need to connect to ioctalk legacy wire format services use:\n```csharp\nnew TcpCommunicationController(new LegacyWireFraming(), new JsonMessageSerializer())\n```\n\n| :exclamation:  BinaryMessageSerializer is not production ready yet! Binary layout may change due to bugfixes! |\n|---------------------------------------------------------------------------------------------------------------|\n\n## Dependency less session handling\n\nHow can you react to distributed events (remote endpoint session changes) in your business code without having a dependency to the underlying transfer stack?\nThe ioctalk solution is \"constructor out delegate\" injection and convention:\n\nFunctional service implementation assembly:\n```csharp\n\tpublic class MySuperService : IMySuperService\n\t{\n\t\tpublic MySuperService(out Action\u003cIMySupremeRemoteClientService\u003e clientServiceCreated, \n\t\t\t\t\tout Action\u003cIMySupremeRemoteClientService\u003e clientServiceTerminated)\n\t\t{\n\t\t\tclientServiceCreated = OnClientServiceCreated;\n\t\t\tclientServiceTerminated = OnClientServiceTerminated;\n\t\t}\n\n\t\tprivate void OnClientServiceCreated(IMySupremeRemoteClientService client)\n\t\t{\n\t\t\t// available remote (or local - depending on the orchestration) client service instance\n\t\t}\n\n\t\tprivate void OnClientServiceTerminated(IMySupremeRemoteClientService client)\n\t\t{\n\t\t}\n\t}\n```\nBy convention the ioctalk dependency injection container needs a \"Created\" or \"Terminated\" at the end of the method name.\n\nIf your service implementation only manages the single session instance, you can also use an `IDisposable` implementation to react on session termination.\nBe aware of not calling remote services in your constructor service implementation. Use constructor parameter `(out Action\u003cIMyService\u003e myselfCreated)` for remote interaction after the session is ready (all session instances are created).\n\n\nNow 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.\n\n\n\n\nLegacy Nuget Packages: [ioctalk](https://www.nuget.org/packages/ioctalk-standard/)       \n\t\t\t   [ioctalk-AheadOfTimeOnly](https://www.nuget.org/packages/ioctalk-standard-AheadOfTimeOnly/)\n\t\t\t   (No Roslyn dependency required - no auto proxy generation)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennil%2Fioctalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennil%2Fioctalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennil%2Fioctalk/lists"}