示例#1
0
 public new void close()
 {
     if (compSrc != null)
     {
         compSrc.close();
         compSrc.Dispose();
         compSrc = null;
     }
     base.close();
 }
示例#2
0
 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);
     }
 }