Dependency Injection: Converting existing DI code to work with Temporal

Liad_Davidson
Sun, 21 May 2023 07:55:32 +0000
Community Support

Hi All,

I was trying to convert some of our existing code to work with Temporal and run into a dead-end when needing to deal with Dependency Injection.

Our code is a ASP.NET Core web API with various [injected] services that interact with each other either on the same instance or on remote instances.

I understand that writing workflows with dependency injection is discouraged due to determinism requirements.

The question is how would I go about converting existing DI code into a workflow?

I’m using the dotnet-sdk alpha release.

Thanks.

5 posts - 4 participants