Exemplo n.º 1
0
        public static HttpRequestMessage CreateGetRequestAsAdmin(string url)
        {
            var message = CreateMessage(url, HttpMethod.Get);

            AuthorizationSupport.AddAdminHeaders(message);

            return(message);
        }
Exemplo n.º 2
0
        public static HttpRequestMessage CreatePutRequestAsAdmin(string url, object content)
        {
            var message = CreatePutRequest(url, content);

            AuthorizationSupport.AddAdminHeaders(message);

            return(message);
        }
Exemplo n.º 3
0
        public static HttpRequestMessage CreatePostMessageAsAdmin(
            string url,
            object content        = null,
            bool withEmptyContent = true
            )
        {
            var message = CreatePostMessage(url, content, withEmptyContent);

            AuthorizationSupport.AddAdminHeaders(message);

            return(message);
        }