microsoft / microsoft/durabletask-dotnet

Allow dependency injection in orchestrations

Open
#168 8 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement needs: investigation P2
Dominant language
C#
Stars
193
Forks
60
Avg merge
3d 12h
Merged PRs (30d)
4

Description

DurableTaskRegistry allows DI in activities but not in orchestrations. This doesn't seem like a technical limitation, as the internal Orchestrators dictionary uses a delegate that accepts IServiceProvider. Would it be possible to fix this gap by adding overloads to the registry class?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the DurableTaskRegistry implementation and inspect its activity DI overloads alongside the internal Orchestrators dictionary delegate. Trace how orchestration registrations are invoked and identify the existing tests covering registry registration. Done means orchestration registrations offer the requested overloads and the relevant tests verify IServiceProvider access.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.