Azure / Azure/azure-functions-dotnet-worker

Does .NET 8 Isolated ServiceBusTrigger function support 'ServiceBusClient' object as dependency?

Open
#2,267 3 comments 0 reactions 0 assignees View on GitHub
enhancement extensions: service-bus
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

![image](https://github.com/Azure/azure-functions-dotnet-worker/assets/92055761/49b029cd-c5df-4555-89a7-6c947a45b8d4)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.