Esempio n. 1
0
        public static Response FromResult <TResult>(TResult value)
        {
            var result = ResponsePool.Get <TResult>();

            result.TypedResult = value;
            return(result);
        }
Esempio n. 2
0
        public static Response FromException <TResult>(Exception exception)
        {
            var result = ResponsePool.Get <TResult>();

            result.Exception = exception;
            return(result);
        }
Esempio n. 3
0
 public PooledResponse <TResult> Create() => ResponsePool.Get <TResult>();