Exemplo n.º 1
0
 public void Post(params IConvertible[] values)
 {
     lock (_FillingLock)
     {
         if (_FillingRocket.AddRow(values))
         {
             _ExecutingHandle.StartNewTask(LaunchRocket, _FillingRocket);
             _FillingRocket = _FreeQueue.Take();
         }
     }
 }
Exemplo n.º 2
0
 private void LaunchRocket(DbRocket rocket)
 {
     rocket.Launch();
     _FreeQueue.Add(rocket);
 }