/// <summary> /// Remove a previously added connection monitor. If the monitor was not found when removing /// it, an exception is thrown. /// </summary> /// <param name="monitor">The connection monitor to remove.</param> public void RemoveConnectionMonitor(INetworkConnectionMonitor monitor) { if (_connectionMonitors.Remove(monitor) == false) { throw new InvalidOperationException("No such monitor to remove"); } }
/// <summary> /// Remove a previously added connection monitor. If the monitor was not found when removing /// it, an exception is thrown. /// </summary> /// <param name="monitor">The connection monitor to remove.</param> public void RemoveConnectionMonitor(INetworkConnectionMonitor monitor) { if (_connectionMonitors.Remove(monitor) == false) { throw new InvalidOperationException("No such monitor to remove"); } }
/// <summary> /// Add a new connection monitor listener. This allows for client code to be notified when /// another player connects or disconnects from the network. /// </summary> /// <param name="monitor">The connection monitor to add.</param> public void AddConnectionMonitor(INetworkConnectionMonitor monitor) { _connectionMonitors.Add(monitor); }
/// <summary> /// Add a new connection monitor listener. This allows for client code to be notified when /// another player connects or disconnects from the network. /// </summary> /// <param name="monitor">The connection monitor to add.</param> public void AddConnectionMonitor(INetworkConnectionMonitor monitor) { _connectionMonitors.Add(monitor); }