Interface IClientEntity
- Namespace
- Microsoft.Azure.ServiceBus
- Assembly
- Microsoft.Azure.ServiceBus.dll
An interface showing the common functionality between all Service Bus clients.
public interface IClientEntity
Properties
ClientId
Gets the ID to identify this client. This can be used to correlate logs and exceptions.
string ClientId { get; }
Property Value
Remarks
Every new client has a unique ID (in that process).
IsClosedOrClosing
Returns true if the client is closed or closing.
bool IsClosedOrClosing { get; }
Property Value
OperationTimeout
Duration after which individual operations will timeout.
TimeSpan OperationTimeout { get; set; }
Property Value
Path
Gets the entity path.
string Path { get; }
Property Value
RegisteredPlugins
Gets a list of currently registered plugins for this client.
IList<ServiceBusPlugin> RegisteredPlugins { get; }
Property Value
ServiceBusConnection
Connection object to the service bus namespace.
ServiceBusConnection ServiceBusConnection { get; }
Property Value
Methods
CloseAsync()
Closes the Client. Closes the connections opened by it.
Task CloseAsync()
Returns
RegisterPlugin(ServiceBusPlugin)
Registers a ServiceBusPlugin to be used with this client.
void RegisterPlugin(ServiceBusPlugin serviceBusPlugin)
Parameters
serviceBusPlugin
ServiceBusPluginThe ServiceBusPlugin to register.
UnregisterPlugin(string)
Unregisters a ServiceBusPlugin.
void UnregisterPlugin(string serviceBusPluginName)