Interface IConfigurationSetEventHub
Aggregates completed lifecycle notifications from all configuration-set coordinators registered on the same host builder.
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.ConfigurationSets
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public interface IConfigurationSetEventHub
Remarks
The hub is registered as a singleton through DI when the first configuration set is added. Subscription callbacks are notifications rather than transaction participants: they run after a coordinator operation completes, outside coordinator state locks, and a throwing subscriber cannot change the completed outcome or block later subscribers.
Methods
| Edit this page View SourceSubscribe(Action<ConfigurationSetNotification>)
Subscribes to completed lifecycle notifications from every registered configuration set.
Declaration
IDisposable Subscribe(Action<ConfigurationSetNotification> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<ConfigurationSetNotification> | handler | Callback invoked for each notification. |
Returns
| Type | Description |
|---|---|
| IDisposable | An idempotent lease that unsubscribes the callback when disposed. |
Subscribe(string, Action<ConfigurationSetNotification>)
Subscribes to completed lifecycle notifications from one named configuration set.
Declaration
IDisposable Subscribe(string setName, Action<ConfigurationSetNotification> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| string | setName | The caller-defined configuration-set identity to observe. |
| Action<ConfigurationSetNotification> | handler | Callback invoked for matching notifications. |
Returns
| Type | Description |
|---|---|
| IDisposable | An idempotent lease that unsubscribes the callback when disposed. |