{"id":26399386,"url":"https://github.com/adoconnection/tudasuda","last_synced_at":"2025-03-17T13:19:42.692Z","repository":{"id":40888056,"uuid":"141237642","full_name":"adoconnection/TudaSuda","owner":"adoconnection","description":"C# SignalR Command/Response framework","archived":false,"fork":false,"pushed_at":"2022-12-08T09:40:46.000Z","size":22,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-06T04:09:15.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adoconnection.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":"2018-07-17T05:49:21.000Z","updated_at":"2023-08-06T04:09:15.633Z","dependencies_parsed_at":"2023-01-25T06:00:15.759Z","dependency_job_id":null,"html_url":"https://github.com/adoconnection/TudaSuda","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoconnection%2FTudaSuda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoconnection%2FTudaSuda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoconnection%2FTudaSuda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoconnection%2FTudaSuda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adoconnection","download_url":"https://codeload.github.com/adoconnection/TudaSuda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039215,"owners_count":20387835,"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","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":[],"created_at":"2025-03-17T13:19:42.076Z","updated_at":"2025-03-17T13:19:42.685Z","avatar_url":"https://github.com/adoconnection.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TudaSuda\nC# SignalR Command/Reply framework\n\nIts like controllers for websockets\n\nImagine you call this JS code on client side:\n\n```javascript\n\nuplink.send({\n    name: 'App/Organization/Sessions/List',\n    data:\n    {\n        organizationGuid: $stateParams.organizationGuid\n    }\n});\n\nuplink.on('App/Organization/Sessions/List', function(data, commandGuid) {\n    \n    $scope.sessions = data;\n    \n});\n\n```\n\nProcess it on server like this:\n```cs\n[TudaSudaCommand(Route = \"App/Organization/Sessions/List\")]\npublic class List : AppCommandProcessor\n{\n    public List(InfraredEntities entities, TudaSudaTransmitter\u003cInfraredAppHub\u003e appHubTransmitter) : base(entities, appHubTransmitter)\n    {\n    }\n\n    protected override Task Process(AppCommandArgs message)\n    {\n        Guid? organizationGuid = message?.Data?.organizationGuid;\n        \n        return this.TransmitConnection(\n              \"App/Organization/Sessions/List\",\n              this.Entities.Sessions\n                  .Where(s =\u003e s.OrganizationGuid == organizationGuid)\n                  .Select(SessionFormatter.Details)\n                  .ToList()\n        );\n    }\n}\n```\n\nwith just a few lines of config\n```cs\npublic class Startup\n{\n    public void ConfigureServices(IServiceCollection services)\n    {\n        services.AddTudaSuda();\n    }\n\n    public void Configure(IApplicationBuilder app, IHostingEnvironment env)\n    {\n        app.UseTudaSuda();\n    }\n}\n```\n\n\nIsn't it great? \nNow you can!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadoconnection%2Ftudasuda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadoconnection%2Ftudasuda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadoconnection%2Ftudasuda/lists"}