public async Task <byte[]> InvokeAsync(byte[] bytes) { using RentedValue <IConnection> invokeOwner = await _asyncConnectionPool.RentAsync(); byte[] response = await invokeOwner.Value.InvokeAsync(bytes, CancellationToken.None); return(response); }
public byte[] Invoke(byte[] bytes) { using RentedValue <IConnection> invokeOwner = _connectionPool.Rent(); byte[] response = invokeOwner.Value.Invoke(bytes); return(response); }