コード例 #1
0
        public bool Equals(IWorkSurfaceKey x, IWorkSurfaceKey y)
        {
            var res = false;

            if (x.EnvironmentID != null && y.EnvironmentID != null)
            {
                if (x.ResourceID == y.ResourceID &&
                    x.ServerID == y.ServerID &&
                    x.EnvironmentID == y.EnvironmentID &&
                    x.WorkSurfaceContext == y.WorkSurfaceContext)
                {
                    res = true;
                }
            }
            else
            {
                if (x.ResourceID == y.ResourceID &&
                    x.ServerID == y.ServerID &&
                    x.WorkSurfaceContext == y.WorkSurfaceContext)
                {
                    res = true;
                }
            }
            return(res);
        }
コード例 #2
0
        public static bool IsWaitingForFistFocusLoss(IWorkSurfaceKey workSurfaceKey)
        {
            if (_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()))
            {
                return(_resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()]);
            }

            return(false);
        }
コード例 #3
0
        public static void PruneWorkflowFromCaches(IWorkSurfaceKey workSurfaceKey)
        {
            if (_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString()))
            {
                _resourcesCurrentlyWaitingForFirstFocusLoss.Remove(workSurfaceKey.ToString());
            }

            if (_resourcesCurrentlyInOpeningState.Contains(workSurfaceKey))
            {
                _resourcesCurrentlyInOpeningState.Remove(workSurfaceKey);
            }

            if (_resourcesCurrentlyInOpeningStateWaitingForLoad.Contains(workSurfaceKey))
            {
                _resourcesCurrentlyInOpeningStateWaitingForLoad.Remove(workSurfaceKey);
            }

            if (_resourceCurrentlyWaitingForWaterMarkUpdates.Contains(workSurfaceKey))
            {
                _resourceCurrentlyWaitingForWaterMarkUpdates.Remove(workSurfaceKey);
            }
        }
コード例 #4
0
 public static void RemoveWorkflowWaitingForFirstFocusLoss(IWorkSurfaceKey workSurfaceKey)
 {
     _resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()] = false;
 }
コード例 #5
0
 public static bool IsWorkflowWaitingforDesignerLoad(IWorkSurfaceKey workSurfaceKey) => _resourcesCurrentlyInOpeningStateWaitingForLoad.Contains(workSurfaceKey);
コード例 #6
0
 public static void RemoveWorkflowWaitingForDesignerLoad(IWorkSurfaceKey workSurfaceKey)
 {
     _resourcesCurrentlyInOpeningStateWaitingForLoad.Remove(workSurfaceKey);
 }
コード例 #7
0
 public static void RemoveWorkflow(IWorkSurfaceKey workSurfaceKey)
 {
     _resourcesCurrentlyInOpeningState.Remove(workSurfaceKey);
 }
コード例 #8
0
 public static void AddWorkflow(IWorkSurfaceKey workSurfaceKey)
 {
     _resourcesCurrentlyInOpeningState.Add(workSurfaceKey);
     _resourcesCurrentlyInOpeningStateWaitingForLoad.Add(workSurfaceKey);
 }