Exemple #1
0
 public void Run()
 {
     if (LeftSource != null && RightSource != null)
     {
         while (true)
         {
             int data = LeftSource.Read();
             if (data != ConstantDataManager.EpmtyData && IsValid(data))
             {
                 RightSource.Write(data);
             }
             Thread.Sleep(100);
         }
     }
 }
Exemple #2
0
 public void Run()
 {
     if (LeftSource != null && RightSource != null)
     {
         while (true)
         {
             Book book = LeftSource.Read();
             if (book != null)
             {
                 RightSource.Write(book);
             }
             Thread.Sleep(100);
         }
     }
 }