Exemplo n.º 1
0
        /// <summary>
        /// Method called when a client is disconnected.  This is fired
        /// asynchronously.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        private void SocketDisconnected(object source, SocketDisconnectedEventArgs e)
        {
            SocketClient client = source as SocketClient;

            if (client != null)
            {
                Log.Info("Client is disconnected and is being removed. It was connected for " + e.UpTime.TotalMilliseconds + "ms. ");
                Remove(client);
            }
        }
		/// <summary>
		/// Method called when a client is disconnected.  This is fired 
		/// asynchronously.
		/// </summary>
		/// <param name="source"></param>
		/// <param name="e"></param>
		private void SocketDisconnected(object source, SocketDisconnectedEventArgs e)
		{
			SocketClient client = source as SocketClient;
			if(client != null)
			{
				Log.Info("Client is disconnected and is being removed. It was connected for " + e.UpTime.TotalMilliseconds + "ms. ");
				Remove(client);
			}
		}