public static void PruneWorkflowFromCaches(WorkSurfaceKey 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);
}
}