question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUERY] ServiceBusReceivedMessage

See original GitHub issue

Query/Question

  1. Is ServiceBusReceivedMessage supposed to be immutable?
  2. How a custom testing code that requires ServiceBusReceivedMessage would obtain the object w/o reflection?

Environment:

  • Name and version of the Library package used: Azure.Messaging.ServiceBus/7.0.0-preview.2
  • Hosting platform or OS and .NET runtime version Windows 10 .NET / Framework 4.8 / Core 3.1
  • IDE and version : Visual Studio 2019

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

8reactions
bjuriscommented, Dec 4, 2020

Took me a while to find the factory, it also had intellisense disabled on the methods, thought I shared a code snippet on this issue if someone else like me googles their way here 😃 var msg = ServiceBusModelFactory.ServiceBusReceivedMessage(body: xx)

2reactions
SeanFeldmancommented, May 4, 2020

We will need to expose a factory class/method for testing purposes.

Any samples I can follow to find a proper implementation?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ServiceBusReceivedMessage Class (Azure.Messaging. ...
The ServiceBusReceivedMessage is used to receive data from Service Bus Queues and Subscriptions. When sending messages, the ServiceBusMessage is used.
Read more >
Azure Service Bus Message Settlement - Eax360
Summary. When sending a message to Azure Service Bus there are various ways to settle a message. This post discusses these methods.
Read more >
Azure Function ServiceBusReceivedMessage ...
More Query from same tag · Best way to design Azure Functions to read events from more than one event hub · Get...
Read more >
Use message session state in Azure Service Bus
Enquiries. The following query was received from an unusual enquirer. Can we check the message session states, which can be assigned to an...
Read more >
Unable to see more than one component in Application ...
I have a simple MVC app that receives a POST request and submits it to an Azure Service Bus Topic. public class DemoModel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found