ClusterBuilderSubscribeTEvent Method (ActionTEvent) |
Subscribes to events of type TEvent.
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ClusterBuilder Subscribe<TEvent>(
Action<TEvent> handler
)
Public Function Subscribe(Of TEvent) (
handler As Action(Of TEvent)
) As ClusterBuilder
member Subscribe :
handler : Action<'TEvent> -> ClusterBuilder
Parameters
- handler
- Type: SystemActionTEvent
The handler.
Type Parameters
- TEvent
- The type of the event.
Return Value
Type:
ClusterBuilderA reconfigured cluster builder.
See Also