diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index de5cb1b3..f663630e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,6 +22,11 @@ jobs:
- os: ubuntu-latest
docsTarget: true
cloudTestTarget: true
+ # This is here alongside docsTarget because newer docfx doesn't work
+ # with .NET 6.
+ dotNetVersionOverride: |
+ 6.x
+ 8.x
- os: ubuntu-arm
runsOn: ubuntu-24.04-arm64-2-core
- os: macos-intel
diff --git a/src/Temporalio.Extensions.Hosting/ActivityScope.cs b/src/Temporalio.Extensions.Hosting/ActivityScope.cs
new file mode 100644
index 00000000..daf02b26
--- /dev/null
+++ b/src/Temporalio.Extensions.Hosting/ActivityScope.cs
@@ -0,0 +1,68 @@
+using System.Threading;
+using Microsoft.Extensions.DependencyInjection;
+
+namespace Temporalio.Extensions.Hosting
+{
+ ///
+ /// Information and ability to control the activity DI scope.
+ ///
+ public static class ActivityScope
+ {
+ private static readonly AsyncLocal ServiceScopeLocal = new();
+ private static readonly AsyncLocal