Пример #1
0
		/// <summary>
		/// 引发 ClientConnected 事件。 
		/// </summary>
		/// <param name="e">包含事件数据的 <see cref="ClientConnectEventArgs"/>。</param>
		internal void FireClientConnected(ClientConnectEventArgs e)
		{
			if (this.ClientConnected != null)
			{
				this.ClientConnected(this, e);
			}
		}
Пример #2
0
		/// <summary>
		/// 引发 ClientClosed 事件。 
		/// </summary>
		/// <param name="e">包含事件数据的 <see cref="ClientConnectEventArgs"/>。</param>
		internal void FireClientClosed(ClientConnectEventArgs e)
		{
			this.channelManager.ResetChannelPool(e.Client.HostName, e.Client.PipeName);

			if (this.ClientClosed != null)
			{
				this.ClientClosed(this, e);
			}
		}