Class ExceptionReceivedContext
- Namespace
- Microsoft.Azure.ServiceBus
- Assembly
- Microsoft.Azure.ServiceBus.dll
Context provided for ExceptionReceivedEventArgs exception raised by the client.
public class ExceptionReceivedContext
- Inheritance
-
ExceptionReceivedContext
- Inherited Members
Constructors
ExceptionReceivedContext(string, string, string, string)
Initializes a new instance of the ExceptionReceivedContext class.
public ExceptionReceivedContext(string action, string endpoint, string entityPath, string clientId)
Parameters
action
stringThe action associated with the exception.
endpoint
stringThe endpoint associated with the exception.
entityPath
stringThe entity path associated with the exception.
clientId
stringThe Client Id can be used to associate with the QueueClient, SubscriptionClient, MessageSender or MessageReceiver that encountered the exception.
Properties
Action
Gets the action associated with the event.
public string Action { get; }
Property Value
- string
The action associated with the event.
ClientId
The Client Id associated with the sender, receiver or session when this exception occurred.
public string ClientId { get; }
Property Value
Endpoint
The namespace name used when this exception occurred.
public string Endpoint { get; }
Property Value
EntityPath
The entity path used when this exception occurred.
public string EntityPath { get; }