Esempio n. 1
0
 int IRemoteFsOperation.ReadData(byte[] buff, int buffOffset, string path, long offset, ref int length)
 {
     try{
         return(basic.ReadData(buff, buffOffset, path, offset, ref length));
     }catch (System.Exception e1) {
         return(output.ReportErr(e1));
     }
 }
Esempio n. 2
0
 public void Clear()
 {
     lock (list){
         for (int i = list.Count - 1; i >= 0; i--)
         {
             try{
                 System.IDisposable disp = list[i];
                 if (disp != null)
                 {
                     disp.Dispose();
                 }
             }catch (System.Exception e0) {
                 msg.ReportErr(e0);
             }
         }
         list.Clear();
     }
 }