Hapikit.HttpClientExtensions.FollowLinkAsync C# (CSharp) Méthode

FollowLinkAsync() public static méthode

public static FollowLinkAsync ( this httpClient, IRequestFactory requestFactory, IResponseHandler handler = null ) : Task
httpClient this
requestFactory IRequestFactory
handler IResponseHandler
Résultat Task
        public static Task<HttpResponseMessage> FollowLinkAsync(
            this System.Net.Http.HttpClient httpClient, 
            IRequestFactory requestFactory, 
            IResponseHandler handler = null) {

            var httpRequestMessage = requestFactory.CreateRequest();
            httpRequestMessage.Properties[PropertyKeyLinkRelation] = requestFactory.LinkRelation;

            return httpClient.SendAsync(httpRequestMessage)
                .ApplyRepresentationToAsync(handler);
        }
HttpClientExtensions