Как установить время ожидания для httpwebrequest в приложении Windows Phone 8?

Я занимаюсь разработкой приложения для Windows Phone 8, в моем приложении я звоню в службы и загружаю некоторые данные в свое приложение.

Я использую httpwebrequest для запроса, но я не могу установить таймаут для моего объекта httpwebrequest.

Вот как я создал и использовал мой httpwebrequest: -

public async Task<string> ServiceRequest(string serviceurl, string request, string methodname)
        {
            string response = "";
            try
            {

                var httpwebrequest = WebRequest.Create(new Uri(serviceurl)) as HttpWebRequest;
                httpwebrequest.Method = "POST";
                httpwebrequest.Headers["SOAPAction"] = "http://tempuri.org/" + iTestservice + "/" + methodname + "";
                httpwebrequest.ContentType = "text/xml";


                byte[] data = Encoding.UTF8.GetBytes(request);
                using (var requestStream = await Task<Stream>.Factory.FromAsync(httpwebrequest.BeginGetRequestStream, httpwebrequest.EndGetRequestStream, null))
                {
                    await requestStream.WriteAsync(data, 0, data.Length);
                }

                response = await httpRequest(httpwebrequest);

            }
            catch (Exception ex)
            {

                return null;
            }

            return response;

        }

        public async Task<string> httpRequest(HttpWebRequest request)
        {
            string received;

            using (var response = (HttpWebResponse)(await Task<WebResponse>.Factory.FromAsync(request.BeginGetResponse, request.EndGetResponse, null)))
            {
                using (var responseStream = response.GetResponseStream())
                {
                    using (var sr = new StreamReader(responseStream))
                    {

                        received = await sr.ReadToEndAsync();
                    }
                }
            }

            return received;
        }

Мое сомнение: -

1) Как я могу установить свойство тайм-аута для Httpwebrequest ??

2) Как я могу установить свойство timeout в моем приложении для Windows Phone 8?

Пожалуйста, дайте мне знать .

Заранее спасибо.

Ответы на вопрос(2)

Ваш ответ на вопрос