Esempio n. 1
0
        // GetSize() -> u64 fileSize
        public ResultCode GetSize(ServiceCtx context)
        {
            try
            {
                context.ResponseData.Write(_baseFile.GetSize());
            }
            catch (HorizonResultException ex)
            {
                return((ResultCode)ex.ResultValue.Value);
            }

            return(ResultCode.Success);
        }
Esempio n. 2
0
        // GetSize() -> u64 fileSize
        public long GetSize(ServiceCtx context)
        {
            try
            {
                context.ResponseData.Write(_baseFile.GetSize());
            }
            catch (HorizonResultException ex)
            {
                return(ex.ResultValue.Value);
            }

            return(0);
        }
Esempio n. 3
0
        // GetSize() -> u64 fileSize
        public long GetSize(ServiceCtx context)
        {
            context.ResponseData.Write(_baseFile.GetSize());

            return(0);
        }