v9.7.2018.0421   支持运行时修改DAL连接字符串
大石头 authored at 2018-04-21 14:00:47
642.00 B
X
namespace NewLife.Queue.Storage
{
    public struct RecordBufferReadResult
    {
        public static readonly RecordBufferReadResult Failure = new RecordBufferReadResult(false, null);

        public readonly bool Success;
        public readonly byte[] RecordBuffer;

        public RecordBufferReadResult(bool success, byte[] recordBuffer)
        {
            Success = success;
            RecordBuffer = recordBuffer;
        }

        public override string ToString()
        {
            return string.Format("[Success:{0}, RecordBufferLength:{1}]", Success, RecordBuffer != null ? RecordBuffer.Length : 0);
        }
    }
}