public new void close() { if (compSrc != null) { compSrc.close(); compSrc.Dispose(); compSrc = null; } base.close(); }
public void Open(HttpClient client, Uri imageUri, bool headerOnly) { if (imageUri.Scheme == "http" || imageUri.Scheme == "https") { compSrc = new HttpCompressedSource(client, Log, imageUri, RequestId, headerOnly); base.open(compSrc); } else if (imageUri.IsFile) { string filename = imageUri.LocalPath; base.open(GetFilePath(filename), true); } }