示例#1
0
        public ResultPromise <TransportResponse> Send(TransportRequest request)
        {
            #region Contracts

            if (request == null)
            {
                throw new ArgumentNullException();
            }

            #endregion

            // Send
            return(_provider.Send(request));
        }
示例#2
0
        public virtual ResultPromise <TransportResponse> Send(TransportRequest request)
        {
            #region Contracts

            if (request == null)
            {
                throw new ArgumentNullException();
            }

            #endregion

            // Require
            if (_provider == null)
            {
                throw new InvalidOperationException();
            }

            // Send
            return(_provider.Send(request));
        }