public async Task SetPedido(Pedido p) { await Task.Factory.FromAsync(proxy.BeginSetPedido(p, null, null), proxy.EndSetPedido); }