public async Task <BatchPeekMessageResponse> BatchPeekMessageAsync(BatchPeekMessageRequest request) { request.QueueName = this.QueueName; var marshaller = new BatchPeekMessageRequestMarshaller(); var unmarshaller = BatchPeekMessageResponseUnmarshaller.Instance; return(await _serviceClient.InvokeAsync <BatchPeekMessageRequest, BatchPeekMessageResponse>(request, marshaller, unmarshaller).ConfigureAwait(false)); }
/// <inheritdoc/> public BatchPeekMessageResponse BatchPeekMessage(BatchPeekMessageRequest request) { request.QueueName = this.QueueName; var marshaller = new BatchPeekMessageRequestMarshaller(); var unmarshaller = BatchPeekMessageResponseUnmarshaller.Instance; return(_serviceClient.Invoke <BatchPeekMessageRequest, BatchPeekMessageResponse>(request, marshaller, unmarshaller)); }
/// <inheritdoc/> public IAsyncResult BeginBatchPeekMessage(BatchPeekMessageRequest request, AsyncCallback callback, object state) { request.QueueName = this.QueueName; var marshaller = new BatchPeekMessageRequestMarshaller(); var unmarshaller = BatchPeekMessageResponseUnmarshaller.Instance; return(_serviceClient.BeginInvoke <BatchPeekMessageRequest>(request, marshaller, unmarshaller, callback, state)); }