Example #1
0
        // Commit()
        public ResultCode Commit(ServiceCtx context)
        {
            try
            {
                _fileSystem.Commit();
            }
            catch (HorizonResultException ex)
            {
                return((ResultCode)ex.ResultValue.Value);
            }

            return(ResultCode.Success);
        }
Example #2
0
        // Commit()
        public long Commit(ServiceCtx context)
        {
            try
            {
                _fileSystem.Commit();
            }
            catch (HorizonResultException ex)
            {
                return(ex.ResultValue.Value);
            }

            return(0);
        }
Example #3
0
 // Commit()
 public ResultCode Commit(ServiceCtx context)
 {
     return((ResultCode)_fileSystem.Commit().Value);
 }
Example #4
0
        // Commit()
        public long Commit(ServiceCtx context)
        {
            _provider.Commit();

            return(0);
        }