{"id":21206944,"url":"https://github.com/paralect/paralect.servicebus","last_synced_at":"2025-07-10T08:33:20.464Z","repository":{"id":140330710,"uuid":"1533270","full_name":"paralect/Paralect.ServiceBus","owner":"paralect","description":null,"archived":false,"fork":false,"pushed_at":"2012-03-26T12:29:41.000Z","size":2623,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-18T19:09:03.353Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paralect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-27T16:50:28.000Z","updated_at":"2013-10-06T10:10:02.000Z","dependencies_parsed_at":"2023-03-13T10:43:45.872Z","dependency_job_id":null,"html_url":"https://github.com/paralect/Paralect.ServiceBus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralect%2FParalect.ServiceBus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralect%2FParalect.ServiceBus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralect%2FParalect.ServiceBus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralect%2FParalect.ServiceBus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paralect","download_url":"https://codeload.github.com/paralect/Paralect.ServiceBus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225629838,"owners_count":17499295,"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":"2024-11-20T20:57:17.587Z","updated_at":"2024-11-20T20:57:18.207Z","avatar_url":"https://github.com/paralect.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿ServiceBus\r\n==========\r\n\r\nUsage\r\n-----\r\n\r\n```csharp\r\n    var bus = ServiceBus.Run(c =\u003e c\r\n        .SetServiceLocator(new UnityServiceLocator(unity))\r\n        .SetInputQueue(\"InputQueue\")\r\n        .AddEndpoint(\"Paralect.ServiceBus.Test.Messages\", \"SomeQueue\")\r\n        .Dispatcher(d =\u003e d\r\n            .AddHandlers(Assembly.GetExecutingAssembly())\r\n        )\r\n    );\r\n```\r\n\r\n\r\n\r\nAnother example:\r\n\r\n```csharp\r\n    var bus = ServiceBus.Run(c =\u003e c\r\n        .SetServiceLocator(new StructureMapServiceLocator(container))\r\n        .MemorySynchronousTransport()\r\n        .SetName(\"Main Service Bus\")\r\n        .SetInputQueue(\"App.Server\")\r\n        .AddEndpoint(type =\u003e type.FullName.EndsWith(\"Event\"), \"App.Server\")\r\n        .AddEndpoint(type =\u003e type.FullName.EndsWith(\"Command\"), \"App.Server\")\r\n        .Dispatcher(d =\u003e d\r\n            .AddHandlers(typeof(UserAR).Assembly)\r\n            .AddHandlers(typeof(TopicAR).Assembly)\r\n            .AddHandlers(typeof(AuthenticationService).Assembly)\r\n            .AddHandlers(typeof(AccountDocument).Assembly)\r\n            .AddHandlers(typeof(CreateUserCommand).Assembly)\r\n            .AddHandlers(typeof(PermissionDocument).Assembly)\r\n            .SetOrder(typeof(UserDocumentEventHandler), \r\n                      typeof(TopicDocumentEventHandler),\r\n                      typeof(CommentDocumentEventHandler))\r\n        )\r\n    );\r\n```    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalect%2Fparalect.servicebus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparalect%2Fparalect.servicebus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalect%2Fparalect.servicebus/lists"}