private void OnServerInfo(ServerInfoEventArgs e) { try { if (this.ServerInfo != null) { this.ServerInfo(this, e); } } catch (Exception innerException) { throw new Exception("Error in ServerInfo event handler", innerException); } }
private void OnServerInfo(ServerInfoEventArgs e) { try { if (ServerInfo != null) { ServerInfo(this, e); } } catch (Exception ex) { throw new Exception(@"Error in ServerInfo event handler", ex); } }
internal ServerInfoEventArgs(ServerEndPoint serverEndPoint, string api, string function, uint error) : base(serverEndPoint) { this.Error = ServerInfoEventArgs.Format(api, function, error); }
static void ServersManager_ServerInfo(object sender, ServerInfoEventArgs e) { Console.WriteLine(@" - Info: [ {0} ] {1}", e.ServerEndPoint.ToString(), e.ToString()); }
private void Server_Failed(Server <C> server, ServerInfoEventArgs e) { this.servers.Remove(server.LocalEndPoint, server); this.OnServerRemoved(server); this.OnServerInfo(e); }
protected virtual void OnFailed(ServerInfoEventArgs e) { this.Failed(this, e); }
private void ServersManager_ServerInfo(object sender, ServerInfoEventArgs e) { Tracer.WriteInformation(string.Format(@"Info: {0}, {1}", e.ServerEndPoint.ToString(), e.ToString())); }