Delegate MemberJoinedCallback
Defines a callback method for notifying applications when a new node joins the cluster.
Assembly: Alachisoft.NCache.Client.dll
Syntax
public delegate void MemberJoinedCallback(NodeInfo nodeInfo);
              Parameters
| Type | Name | Description | 
|---|---|---|
| NodeInfo | nodeInfo | The information of the newly joined member. It describes the member in terms of the IP Address and server port. The server port is required when a client wants to connect to this server node for using a cache in OutProc manner.  | 
                  
Remarks
This handler is invoked every time a new node joins the cluster.
Examples
The following example demonstrates how to use the MemberJoinedCallback class to notify an application when a new node joins the cluster.
public void OnMemberJoined(NodeInfo nodeInfo)
{
    // ...
}
protected void Application_Start(object sender, EventArgs e)
{
    try
    {
        ICache cache = CacheManager.GetCache("demoClusteredCache");
        cache.NotificationService.MemberJoined += new MemberJoinedCallback(this.OnMemberJoined);
    }
    catch(Exception ex)
    {
    }
}