temporalio / samples-dotnet

Samples for working with the Temporal .NET SDK
MIT License
57 stars 21 forks source link

[Bug] AddHostedTemporalWorker is not defined #51

Closed eugbyte closed 10 months ago

eugbyte commented 10 months ago

Describe the bug

The extension method AddHostedTemporalWorker is not found anywhere in the projec, nor the namespace using Temporalio.Extensions.Hosting, although they are mentioned in the samples.

cretz commented 10 months ago

This is used here and it compiles successfully because it is an extension method on IServiceCollection in the Microsoft.Extensions.DependencyInjection namespace when the Temporalio.Extensions.Hosting is depended on. See the README for the Temporalio.Extensions.Hosting project. Here is where it is defined.

Feel free to join is on the #dotnet-sdk channel on Slack at https://t.mp/slack and the forums for general questions. I'll close this issue, but you can continue to comment on it too.