コード例 #1
0
 void WorkerThread()
 {
     while (!Cancelled)
     {
         BasicConnection conn = new BasicConnection();
         conn.DoWork("Hello");
         conn.DoWork("Goodbye");
     }
 }
コード例 #2
0
 public void DoWork(string msg)
 {
     if (_Disposed)
     {
         throw new ObjectDisposedException("Error: PooledConnection used after Dispose");
     }
     _Conn.DoWork(msg);
 }