/// <summary>
 /// Initializes a new instance of the <see cref="DistributedObjectLifecycleEventHandler"/> class.
 /// </summary>
 /// <param name="eventType">The type of the event.</param>
 /// <param name="handler">An action to execute</param>
 public DistributedObjectLifecycleEventHandler(DistributedObjectLifecycleEventType eventType, Func <IHazelcastClient, DistributedObjectLifecycleEventArgs, ValueTask> handler)
     : base(handler)
 {
     EventType = eventType;
 }
 /// <summary>
 /// Triggers an object lifecycle event.
 /// </summary>
 /// <param name="eventType">The type of the events.</param>
 /// <param name="args">The event arguments.</param>
 public ValueTask OnObjectLifecycleEvent(DistributedObjectLifecycleEventType eventType, DistributedObjectLifecycleEventArgs args)
 {
     return(ForEachHandler <DistributedObjectLifecycleEventHandler, DistributedObjectLifecycleEventArgs>((handler, sender, a) =>
                                                                                                         handler.EventType == eventType
                 ? handler.HandleAsync(sender, a)
                 : default,