Esempio n. 1
0
        /// <summary>
        /// Leave network that has been started or joined before.
        /// </summary>
        /// <param name="handler">handler for result</param>
        public void LeaveRequest(
            LeaveConfirmHandler handler)
        {
            if (!_running)
            {
                if (handler != null)
                {
                    handler.Invoke(_net, Status.NotRunning);
                }
                return;
            }

            _net.Routing.Stop();
            _running = false;
            if (handler != null)
            {
                handler.Invoke(_net, Status.Success);
            }
            Trace.Print("Leaving network");
        }
Esempio n. 2
0
 /// <summary>
 /// Leave network that has been started or joined before.
 /// </summary>
 /// <param name="handler">handler for result</param>
 public void LeaveRequest(
     LeaveConfirmHandler handler)
 {
     _mgmt.LeaveRequest(handler);
 }
Esempio n. 3
0
        /// <summary>
        /// Leave network that has been started or joined before.
        /// </summary>
        /// <param name="handler">handler for result</param>
        public void LeaveRequest(
            LeaveConfirmHandler handler)
        {
            if (!_running)
            {
                if (handler != null)
                    handler.Invoke(_net, Status.NotRunning);
                return;
            }

            _net.Routing.Stop();
            _running = false;
            if (handler != null)
                handler.Invoke(_net, Status.Success);
            Trace.Print("Leaving network");
        }
Esempio n. 4
0
 /// <summary>
 /// Leave network that has been started or joined before.
 /// </summary>
 /// <param name="handler">handler for result</param>
 public void LeaveRequest(
     LeaveConfirmHandler handler)
 {
     _mgmt.LeaveRequest(handler);
 }