public void OnAsyncConnect(PipeStream pipe, out Object state)
        {
            Int32 count = Interlocked.Increment(ref m_count);

            Tracing.InfoCore("Named pipe (server) connected with instance count {0}.", count.ToString());
            state = count;
        }
 public void OnAsyncDisconnect(PipeStream pipe, Object state)
 {
     Tracing.InfoCore("Named pipe disconnected with state \"{0}\".", state.ToString());
 }