Interface ISubscriberManager
Manager abstraction responsible for creating and managing ISubscriber instances. Implementations provide asynchronous creation methods with various configuration options and support deletion/lifecycle management of created subscribers.
Namespace: CodersRealm.NmsAmqpClient
Assembly: CodersRealm.NmsAmqpClient.dll
Syntax
public interface ISubscriberManager
Properties
IsDisposed
Gets a value indicating whether the object has been disposed.
Declaration
bool IsDisposed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Use this property to determine if the object is no longer usable due to disposal. Accessing members of a disposed object may result in exceptions.
Methods
CreateAsync(SubscriberOptions)
Asynchronously creates a new subscriber instance using the specified options.
Declaration
Task<ISubscriber> CreateAsync(SubscriberOptions subscriberOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| SubscriberOptions | subscriberOptions | The configuration options used to initialize the subscriber. Cannot be null. |
Returns
| Type | Description |
|---|---|
| Task<ISubscriber> | A task that represents the asynchronous operation. The task result contains the created subscriber instance. |
CreateAsync(SubscriberOptions, ResponderOptions)
Asynchronously creates a new subscriber-responder instance using the specified subscriber and responder options.
Declaration
Task<ISubscriber> CreateAsync(SubscriberOptions subscriberOptions, ResponderOptions responderOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| SubscriberOptions | subscriberOptions | The configuration options that define the behavior and settings for the subscriber. Cannot be null. |
| ResponderOptions | responderOptions | The configuration options that specify how the subscriber responds to messages. Cannot be null. |
Returns
| Type | Description |
|---|---|
| Task<ISubscriber> | A task that represents the asynchronous operation. The task result contains an ISubscriber instance configured with the provided options. |
DeleteAsync(Guid)
Asynchronously deletes (disposes) the subscriber identified by the specified tag.
Declaration
Task DeleteAsync(Guid subscriberTag)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | subscriberTag | The unique identifier of the subscriber to delete. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous delete operation. |