Exemplo n.º 1
0
            public void Run()
            {
                if (_manager != null)
                {
                    switch (_activity)
                    {
                    case Activity.NodeJoining:
                        _manager.OnMemberJoined(_server);
                        break;

                    case Activity.NodeLeaving:
                        _manager.OnMemberLeft(_server);
                        break;

                    case Activity.GeneralElectionsTriggered:
                        _manager.OnGeneralElectionsTriggered();
                        break;
                    }
                }
            }