Beispiel #1
0
        public object DeviceExecute(Schema.Device device, PlanNode planNode)
        {
            if (_serverProcess.IsReconciliationEnabled() || (planNode.DataType != null))
            {
                long startTicks = TimingUtility.CurrentTicks;
                try
                {
                    EnsurePrepared(planNode);
                    return(DeviceConnect(device).Execute(this, planNode));
                }
                finally
                {
                    _statistics.DeviceExecuteTime += TimingUtility.TimeSpanFromTicks(startTicks);
                }
            }

            return(null);
        }