Bloom.Api.EnhancedImageServer.RemoveSimulatedPageFile C# (CSharp) Method

RemoveSimulatedPageFile() static private method

static private RemoveSimulatedPageFile ( string key ) : void
key string
return void
        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());
            }
        }

Usage Example

Example #1
0
 public void Dispose()
 {
     EnhancedImageServer.RemoveSimulatedPageFile(Key);
 }