{"id":30743178,"url":"https://github.com/xcomponent/reactivexcomponent.net","last_synced_at":"2025-09-04T02:03:52.074Z","repository":{"id":49091760,"uuid":"59554642","full_name":"xcomponent/ReactiveXComponent.Net","owner":"xcomponent","description":"C# API for XComponent","archived":false,"fork":false,"pushed_at":"2022-12-08T04:23:07.000Z","size":3656,"stargazers_count":5,"open_issues_count":8,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-30T06:36:07.990Z","etag":null,"topics":["dotnet-api","nuget","reactive","reactive-programming","xcomponent"],"latest_commit_sha":null,"homepage":null,"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/xcomponent.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}},"created_at":"2016-05-24T08:26:06.000Z","updated_at":"2022-11-29T10:07:24.000Z","dependencies_parsed_at":"2023-01-24T10:15:13.132Z","dependency_job_id":null,"html_url":"https://github.com/xcomponent/ReactiveXComponent.Net","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/xcomponent/ReactiveXComponent.Net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcomponent%2FReactiveXComponent.Net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcomponent%2FReactiveXComponent.Net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcomponent%2FReactiveXComponent.Net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcomponent%2FReactiveXComponent.Net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcomponent","download_url":"https://codeload.github.com/xcomponent/ReactiveXComponent.Net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcomponent%2FReactiveXComponent.Net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273539317,"owners_count":25123499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":["dotnet-api","nuget","reactive","reactive-programming","xcomponent"],"created_at":"2025-09-04T02:03:49.692Z","updated_at":"2025-09-04T02:03:52.064Z","avatar_url":"https://github.com/xcomponent.png","language":"C#","readme":"[![XComponent team Slack](http://slack.xcomponent.com/badge.svg)](http://slack.xcomponent.com/)\n[![ReactiveXComponent.Net Nuget](https://img.shields.io/nuget/v/ReactiveXComponent.Net.svg)](https://www.nuget.org/packages/ReactiveXComponent.Net)\n[![ReactiveXComponent.Net Downloads](https://img.shields.io/nuget/dt/ReactiveXComponent.Net.svg)](https://www.nuget.org/packages/ReactiveXComponent.Net)\n![CircleCI branch](https://img.shields.io/circleci/project/github/xcomponent/ReactiveXComponent.Net/master.svg)\n\n# .Net Reactive XComponent API\n\n\u003cimg src=\"logo.png\" width=\"64\" height=\"64\" /\u003e\n\nReactiveXComponent.Net is a .Net client API that allows you to interact with microservices generated with XComponent software.\n\n## Install\n\nUse Nuget to install the latest version of the API:\n``` nuget install ReactiveXComponent.Net -Pre```\n\n## Usage\n\nUsage example of ReactiveXComponent.Net API\n```csharp\n// All the info we need is in the xcApi file. Get a XComponentApi..\nIXComponentApi xcApi = XComponentApi.CreateFromXCApi(@\".\\HelloWorld.xcApi\");\n\n// Create a session..\nusing (IXCSession xcSession = xcApi.CreateSession())\n{\n    var componentName = \"HelloWorld\";\n    var helloWorldManagerStateMachineName = \"HelloWorldManager\";\n    var helloWorldResponseStateMachineCode = 1837059171;\n\n    // Create a subscriber..\n    var subscriber = xcSession.CreateSubscriber(componentName);\n\n    // Create a publisher..\n    var publisher = xcSession.CreatePublisher(componentName);\n\n    // Need to call subscribe for the state machine we are interested in..\n    subscriber.Subscribe(helloWorldManagerStateMachineName, arg =\u003e {});\n\n    // Subscribe to state machine updates via the IObservable collection..\n    var eventReceived = new ManualResetEvent(false);\n    var observer = Observer.Create\u003cMessageEventArgs\u003e(args =\u003e\n    {\n        Console.WriteLine(args.MessageReceived);\n        eventReceived.Set();\n    });\n\n    var subscription = subscriber.StateMachineUpdatesStream\n                                .Where(e =\u003e e.StateMachineRefHeader.StateMachineCode == helloWorldResponseStateMachineCode)\n                                .Subscribe(observer);\n\n    // Send an event to a state machine..\n    var sayHiEvent = new SayHi() { To = \"World\" };\n\n    publisher.SendEvent(helloWorldManagerStateMachineName, sayHiEvent);\n\n    // Wait for state machine update and dispose subscription..\n    eventReceived.WaitOne(5000);\n\n    subscription.Dispose();\n}\n```\n\n## Build from source\nDownload the source code and execute the following command in a PowerShell:\n``` \n.\\build.ps1 -Target All\n```\nThat would build the source code run the tests and create a Nuget package under the *nuget* folder.\n\nThe complete command that contains all the possible parameters is as follows:\n``` \n.\\build.ps1 -Target \u003cTarget\u003e --buildConfiguration=\u003cbuild_config\u003e --buildVersion=\u003cbuild_version\u003e --setAssemblyVersion=\u003ctrue_or_false\u003e\n```\n\n**target** can be one of these values:   \n*Clean*  \n*RestoreNugetPackages*  \n*Build*  \n*Test*  \n*CreatePackage*  \n*All*  \n\nDefault value: *Build*\n\n**buildConfiguration** can be either *Debug* or *Release*.  \nDefault value: *Release* \n\n**buildVersion** is the build version to set for the assembly or Nuget package.  \nDefault value: *1.0.0-build1*\n\n**setAssemblyVersion** can be either *True* or *False*. When set to true the assembly version will be set to the value indicated by **buildVersion**.  \nDefault value: *False*\n\n## Contributing\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push -u origin my-new-feature`\n5. Submit a pull request\n\n## License\nApache License V2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcomponent%2Freactivexcomponent.net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcomponent%2Freactivexcomponent.net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcomponent%2Freactivexcomponent.net/lists"}