Azure / Azure/azure-functions-dotnet-worker
Does .NET 8 Isolated ServiceBusTrigger function support 'ServiceBusClient' object as dependency?
- Dominant language
- C#
- Stars
- 466
- Forks
- 215
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 7
Description
As 'ServiceBusClient' object supports in .NET 6 In Process function. Can we use it in .NET 8 isolated function

I get following runtime error in .NET 8 Isolated function
........................................
Cannot convert input parameter 'client' to type 'Azure.Messaging.ServiceBus.ServiceBusClient' from type 'System.String'. Error:System.NotSupportedException: Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'Azure.Messaging.ServiceBus.ServiceBusClient'. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
..............................................
.................................................
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names a .NET 8 isolated ServiceBusTrigger function and the ServiceBusClient dependency, but no repository file, test, or entry point. Start by reproducing the reported conversion error and comparing it with the .NET 6 in-process behavior described. Done would require an agreed resolution for whether this dependency is supported and corresponding verified behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100