Пример #1
0
        private ResponseGet prepareGetResponse(RmReference objectId, CultureInfo culture, string[] attributes)
        {
            bool haveSearchAttributes = true;

            if (attributes == null || attributes.Length == 0)
            {
                haveSearchAttributes = false;
            }

            Message msgRequest  = requestFactory.CreateGetRequest(objectId, culture, attributes);
            Message msgResponse = wsResourceClient.Get(msgRequest);

            if (msgResponse.IsFault)
            {
                ClientHelper.HandleFault(msgResponse);
            }

            return(responseFactory.CreateGetResponse(msgResponse, haveSearchAttributes));
        }
Пример #2
0
 public async Task <HttpResponseMessage> GetSessionAsync(string url, CookieContainer cookieContainer)
 {
     return(await HttpProxyServer.SendRequest(RequestFactory.CreateGetRequest(url), cookieContainer));
 }