Show / Hide Table of Contents

Interface IHttpProvider

Interface for an HTTP provider to send requests.

Inherited Members
System.IDisposable.Dispose()
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public interface IHttpProvider : IDisposable

Properties

View Source

Serializer

Gets a serializer for serializing and deserializing JSON objects.

Declaration
ISerializer Serializer { get; }
Property Value
Type Description
ISerializer

Methods

View Source

SendAsync(HttpRequestMessage)

Sends the request.

Declaration
Task<HttpResponseMessage> SendAsync(HttpRequestMessage request)
Parameters
Type Name Description
System.Net.Http.HttpRequestMessage request

The System.Net.Http.HttpRequestMessage to send.

Returns
Type Description
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>

The System.Net.Http.HttpResponseMessage.

View Source

SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)

Sends the request.

Declaration
Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
Parameters
Type Name Description
System.Net.Http.HttpRequestMessage request

The System.Net.Http.HttpRequestMessage to send.

System.Net.Http.HttpCompletionOption completionOption

The System.Net.Http.HttpCompletionOption to pass to the IHttpProvider on send.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

Returns
Type Description
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>

The System.Net.Http.HttpResponseMessage.

  • View Source
Back to top Generated by DocFX