Ejemplo n.º 1
0
 public static VisionSensorRepository GetInstance()
 {
     if (VisionSensorRepository._instance == null)
     {
         VisionSensorRepository._instance = new VisionSensorRepository();
     }
     ++VisionSensorRepository._referenceCount;
     return(VisionSensorRepository._instance);
 }
Ejemplo n.º 2
0
 public static void ReleaseInstance()
 {
     --VisionSensorRepository._referenceCount;
     if (VisionSensorRepository._referenceCount > 0)
     {
         return;
     }
     ExecutingMonitorExplorer.Release();
     VisionSensorRepository._instance = (VisionSensorRepository)null;
 }