{"id":19383249,"url":"https://github.com/rebus-org/rebus.transactionscopes","last_synced_at":"2025-10-07T12:34:34.032Z","repository":{"id":138118039,"uuid":"67026221","full_name":"rebus-org/Rebus.TransactionScopes","owner":"rebus-org","description":":bus: System.Transactions.TransactionScope enlistment helper for Rebus","archived":false,"fork":false,"pushed_at":"2024-02-23T21:28:33.000Z","size":3105,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T20:11:51.776Z","etag":null,"topics":["rebus","transactions"],"latest_commit_sha":null,"homepage":"https://mookid.dk/category/rebus","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rebus-org.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2016-08-31T10:03:45.000Z","updated_at":"2023-10-10T10:37:46.000Z","dependencies_parsed_at":"2024-11-10T09:36:54.329Z","dependency_job_id":null,"html_url":"https://github.com/rebus-org/Rebus.TransactionScopes","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebus-org%2FRebus.TransactionScopes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebus-org%2FRebus.TransactionScopes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebus-org%2FRebus.TransactionScopes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebus-org%2FRebus.TransactionScopes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rebus-org","download_url":"https://codeload.github.com/rebus-org/Rebus.TransactionScopes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250517748,"owners_count":21443835,"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":["rebus","transactions"],"created_at":"2024-11-10T09:25:13.180Z","updated_at":"2025-10-07T12:34:28.969Z","avatar_url":"https://github.com/rebus-org.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rebus.TransactionScopes\n\n[![install from nuget](https://img.shields.io/nuget/v/Rebus.TransactionScopes.svg?style=flat-square)](https://www.nuget.org/packages/Rebus.TransactionScopes)\n\nProvides a `System.Transactions.TransactionScope` helper for [Rebus](https://github.com/rebus-org/Rebus).\n\n![](https://raw.githubusercontent.com/rebus-org/Rebus/master/artwork/little_rebusbus2_copy-200x200.png)\n\n---\n\nUse it like this when you send/publish things from anywhere besides inside Rebus handlers:\n\n\tusing (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))\n\t{\n\t\tscope.EnlistRebus();\n\n\t\t// this one is automatically enlisted in the ambient .NET transaction\n\t\tawait _bus.Send(\"ostemad\");\n\n\t\tscope.Complete();\n\t}\n\nUse it like this to have Rebus handlers invoked inside a `TransactionScope`:\n\n    Configure.With(...)\n        .(...)\n        .Options(o =\u003e\n        {\n            o.HandleMessagesInsideTransactionScope();\n        })\n        .Start();\n\nBy default, the transaction scope will use the `IsolationLevel.ReadCommitted` isolation level with a 1 minute timeout. These\nvalues can be configured by passing an instance of `TransactionOptions` to `HandleMessagesInsideTransactionScope`.\n\nThat's about it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebus-org%2Frebus.transactionscopes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frebus-org%2Frebus.transactionscopes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebus-org%2Frebus.transactionscopes/lists"}