示例#1
0
        /// <summary>
        /// Sends the a http request to the server, posting the request in json format
        /// </summary>
        /// <param name="bulkRequest">Bulk request object that will goto the rpc server</param>
        /// <param name="route">(Optional) Route that will append to the base url if the request method call is not located at the base route</param>
        ///
        public Task <RpcBulkResponse> SendAsync(RpcBulkRequest bulkRequest, string?route = null)
        {
            if (bulkRequest == null)
            {
                throw new ArgumentNullException(nameof(bulkRequest));
            }
            var wrapper = new BulkRequestWrapper(bulkRequest);

            return(this.SendAsync(wrapper, route));
        }
示例#2
0
 public BulkRequestWrapper(RpcBulkRequest request)
 {
     this.request = request;
 }