Inheritance: ServerChangeEventArgs
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 internal ServerInfoEventArgs(ServerEndPoint serverEndPoint, string api, string function, uint error) : base(serverEndPoint)
 {
     this.Error = ServerInfoEventArgs.Format(api, function, error);
 }
Exemplo n.º 4
0
 static void ServersManager_ServerInfo(object sender, ServerInfoEventArgs e)
 {
     Console.WriteLine(@"  -    Info: [ {0} ] {1}", e.ServerEndPoint.ToString(), e.ToString());
 }
Exemplo n.º 5
0
 private void Server_Failed(Server <C> server, ServerInfoEventArgs e)
 {
     this.servers.Remove(server.LocalEndPoint, server);
     this.OnServerRemoved(server);
     this.OnServerInfo(e);
 }
Exemplo n.º 6
0
 protected virtual void OnFailed(ServerInfoEventArgs e)
 {
     this.Failed(this, e);
 }
Exemplo n.º 7
0
		private void ServersManager_ServerInfo(object sender, ServerInfoEventArgs e)
		{
			Tracer.WriteInformation(string.Format(@"Info: {0}, {1}", e.ServerEndPoint.ToString(), e.ToString()));
		}