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); }
public static bool IsWaitingForFistFocusLoss(IWorkSurfaceKey workSurfaceKey) { if (_resourcesCurrentlyWaitingForFirstFocusLoss.ContainsKey(workSurfaceKey.ToString())) { return(_resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()]); } return(false); }
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); } }
public static void RemoveWorkflowWaitingForFirstFocusLoss(IWorkSurfaceKey workSurfaceKey) { _resourcesCurrentlyWaitingForFirstFocusLoss[workSurfaceKey.ToString()] = false; }
public static bool IsWorkflowWaitingforDesignerLoad(IWorkSurfaceKey workSurfaceKey) => _resourcesCurrentlyInOpeningStateWaitingForLoad.Contains(workSurfaceKey);
public static void RemoveWorkflowWaitingForDesignerLoad(IWorkSurfaceKey workSurfaceKey) { _resourcesCurrentlyInOpeningStateWaitingForLoad.Remove(workSurfaceKey); }
public static void RemoveWorkflow(IWorkSurfaceKey workSurfaceKey) { _resourcesCurrentlyInOpeningState.Remove(workSurfaceKey); }
public static void AddWorkflow(IWorkSurfaceKey workSurfaceKey) { _resourcesCurrentlyInOpeningState.Add(workSurfaceKey); _resourcesCurrentlyInOpeningStateWaitingForLoad.Add(workSurfaceKey); }