示例#1
0
        ////

        internal void CloseFileProxy(string rawFileName, DokanFileInfo rawFileInfo)
        {
            try
            {
                _operations.CloseFile(rawFileName, rawFileInfo);
            }
            catch (Exception ex)
            {
                ServiceRegistration.Get <ILogger>().Warn("Dokan exception: ", ex);
            }
        }
示例#2
0
 public int CloseFileProxy(IntPtr rawFileName, ref DOKAN_FILE_INFO rawFileInfo)
 {
     try
     {
         string file = GetFileName(rawFileName);
         int    ret  = operations.CloseFile(file, ConvertFileInfo(ref rawFileInfo));
         rawFileInfo.Context = 0;
         return(ret);
     }
     catch (Exception ex)
     {
         Log.ErrorException("CloseFileProxy threw: ", ex);
         return(-1);
     }
 }
示例#3
0
        ////

        public int CloseFileProxy(string rawFileName,
                                  DokanFileInfo rawFileInfo)
        {
            try
            {
                return((int)_operations.CloseFile(rawFileName, rawFileInfo));
            }
            catch
            {
#if DEBUG
                throw;
#endif
                return(ERROR_INVALID_FUNCTION);
            }
        }
示例#4
0
        ////

        public void CloseFileProxy(string rawFileName,
                                   DokanFileInfo rawFileInfo)
        {
            try
            {
                logger.Debug("CloseFileProxy : {0}", rawFileName);
                logger.Debug("\tContext\t{0}", rawFileInfo);

                operations.CloseFile(rawFileName, rawFileInfo);

                logger.Debug("CloseFileProxy : {0}", rawFileName);
            }
            catch (Exception ex)
            {
                logger.Error("CloseFileProxy : {0} Throw : {1}", rawFileName, ex.Message);
            }
        }
        ////

        public void CloseFileProxy(string rawFileName,
                                   DokanFileInfo rawFileInfo)
        {
            try
            {
                Trace("\nCloseFileProxy : " + rawFileName);
                Trace("\tContext\t" + ToTrace(rawFileInfo));

                operations.CloseFile(rawFileName, rawFileInfo);

                Trace("CloseFileProxy : " + rawFileName);
            }
#pragma warning disable 0168
            catch (Exception ex)
#pragma warning restore 0168
            {
                Trace("CloseFileProxy : " + rawFileName + " Throw : " + ex.Message);
            }
        }
示例#6
0
 public void CloseFile(string filename, DokanFileInfo info)
 {
     ope_.CloseFile(filename, info);
 }
示例#7
0
 public DokanError CloseFile(string filename, DokanFileInfo info)
 {
     return(ope_.CloseFile(filename, info));
 }