/// <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"); }
/// <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); }
/// <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"); }