/// <summary> /// ServerChangeイベントを発生させます。 /// </summary> protected void OnServerChange(ServerChangeEventArgs e) { if (ServerChange != null) { ServerChange(this, e); } }
/// <summary> /// Tracingイベントを発生させる /// </summary> /// <param name="e"></param> protected void OnTracing(ServerChangeEventArgs e) { if (Tracing != null) { Tracing(this, e); } }
private void OnTracing(object sender, ServerChangeEventArgs e) { labelNewName.Text = e.NewBoard.Name; labelNewUrl.Text = e.NewBoard.Url; listBoxServ.SelectedIndex = listBoxServ.Items.Add(e.NewBoard); buttonGo.Enabled = true; }
private void ServersManager_ServerRemoved(object sender, ServerChangeEventArgs e) { Tracer.WriteInformation(string.Format(@"Removed: {0}", e.ServerEndPoint.ToString())); }
static void ServersManager_ServerAdded(object sender, ServerChangeEventArgs e) { Console.WriteLine(@" - Added: {0}", e.ServerEndPoint.ToString()); }
private void PeerServer_ServerRemoved(object sender, ServerChangeEventArgs e) { logger.WriteInformation(string.Format("PEER removed: {0}", e.ServerEndPoint.ToString())); }
private void TurnServer_ServerRemoved(object sender, ServerChangeEventArgs e) { logger.WriteInformation(string.Format("TURN server address removed: {0}", e.ServerEndPoint.ToString())); }
private void TurnServer_ServerAdded(object sender, ServerChangeEventArgs e) { logger.WriteInformation(string.Format("TURN server listen: {0}", e.ServerEndPoint.ToString())); }