Inheritance: ServerChangeEventArgs
Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
 }
Beispiel #4
0
 static void ServersManager_ServerInfo(object sender, ServerInfoEventArgs e)
 {
     Console.WriteLine(@"  -    Info: [ {0} ] {1}", e.ServerEndPoint.ToString(), e.ToString());
 }
Beispiel #5
0
 private void Server_Failed(Server <C> server, ServerInfoEventArgs e)
 {
     this.servers.Remove(server.LocalEndPoint, server);
     this.OnServerRemoved(server);
     this.OnServerInfo(e);
 }
Beispiel #6
0
 protected virtual void OnFailed(ServerInfoEventArgs e)
 {
     this.Failed(this, e);
 }
Beispiel #7
0
		private void ServersManager_ServerInfo(object sender, ServerInfoEventArgs e)
		{
			Tracer.WriteInformation(string.Format(@"Info: {0}, {1}", e.ServerEndPoint.ToString(), e.ToString()));
		}