I used dotnet nuget package Temporalio.Extensions.Hosting to create hosted Temporal worker by:
services.AddHostedTemporalWorker()
Using this will cause the app crash when the Temporal service is stopped. Is it possible to make the app continue to run normally, just without using Temporal?
Event: BackgroundServiceFaulted
Exception: System.InvalidOperationException
Stack trace:
at Temporalio.Bridge.Client.ConnectAsync(Runtime runtime, TemporalConnectionOptions options)
at Temporalio.Client.TemporalConnection.GetBridgeClientAsync()
at Temporalio.Client.TemporalConnection.ConnectAsync(TemporalConnectionOptions options)
at Temporalio.Client.TemporalClient.ConnectAsync(TemporalClientConnectOptions options)
at Temporalio.Extensions.Hosting.TemporalWorkerService.ExecuteAsync(CancellationToken stoppingToken)
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)