internal static void RemoveSimulatedPageFile(string key)
{
if (key.StartsWith("file://"))
{
var uri = new Uri(key);
RobustFile.Delete(uri.LocalPath);
return;
}
lock (_urlToSimulatedPageContent)
{
_urlToSimulatedPageContent.Remove(key.FromLocalhost());
}
}