Poehoe.Request.Send C# (CSharp) Method

Send() public method

public Send ( User U ) : Task
U User
return Task
        public async Task<string> Send(User U)
        {
            await U.SetBaseAddress();
                ByteArrayContent C = new ByteArrayContent(Crypto.EncryptRequest(this));
                C.Headers.Add("soapaction", "\"" + SoapAction + "\"");
                C.Headers.Add("content-type", "text/xml; charset=utf-8");
                var Req = await U._client.PostAsync(String.Format("{0}Service.svc", this.Service), C);
                var ba = await Req.Content.ReadAsByteArrayAsync();
                return Crypto.DecryptResponse(ba);
        }
    }
Request