Esempio n. 1
0
 void IProconPuzzleService.Polygon(SendablePolygon poly)
 {
     if (_Polygon == null)
     {
         _Polygon = poly;
     }
     else
     {
         lock (_Polygon) {
             _Polygon = poly;
         }
     }
     IsPolygonReceived = true;
 }
            public void Polygon(SendablePolygon poly)
            {
                int err = 0;

                for (int i = 0; i < 3; ++i)
                {
                    try {
                        services[i].Polygon(poly);
                    } catch {
                        err++;
                    }
                }
                if (err == 3)
                {
                    throw new Exception();
                }
            }
 public void Polygon(SendablePolygon poly)
 {
 }