Свойство | Тип | Описание | |
---|---|---|---|
httpHandler |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Implemenation of IDisposable
|
|
MobileServiceHttpClient ( IEnumerable |
Instantiates a new MobileServiceHttpClient, which does all the request to a mobile service.
|
|
RequestAsync ( HttpMethod method, string uriPathAndQuery, |
Makes an HTTP request that includes the standard Mobile Services headers. It will use an HttpClient with user-defined http handlers.
|
|
RequestAsync ( HttpMethod method, string uriPathAndQuery, |
Makes an HTTP request that includes the standard Mobile Services headers. It will use an HttpClient with user-defined http handlers.
|
|
RequestWithoutHandlersAsync ( HttpMethod method, string uriPathAndQuery, |
Performs a web request and includes the standard Mobile Services headers. It will use an HttpClient without any http handlers.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Implemenation of IDisposable for derived classes to use.
|
Метод | Описание | |
---|---|---|
CreateHttpContent ( string content ) : |
Creates an HttpContent instance from a string.
|
|
CreateHttpRequestMessage ( HttpMethod method, string uriPathAndQuery, string>.IDictionary |
Creates an HttpRequestMessage with all of the required Mobile Service headers.
|
|
CreatePipeline ( IEnumerable |
Transform an IEnumerable of HttpMessageHandlers into a chain of HttpMessageHandlers.
|
|
GetDefaultHttpClientHandler ( ) : |
Returns a default HttpMessageHandler that supports automatic decompression.
|
|
GetResponseContent ( |
Returns the content from the response as a string.
|
|
GetUserAgentHeader ( ) : string |
Gets the user-agent header to use with all requests.
|
|
RequestAsync ( bool UseHandlers, HttpMethod method, string uriPathAndQuery, |
Makes an HTTP request that includes the standard Mobile Services headers. It will use an HttpClient that optionally has user-defined http handlers.
|
|
SendRequestAsync ( |
Sends the request with the given client.
|
|
ThrowInvalidResponse ( |
Throws an exception for an invalid response to a web request.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// Indicates if being called from the Dispose() method /// or the finalizer. /// |
Результат | void |
public MobileServiceHttpClient ( IEnumerable |
||
handlers | IEnumerable |
/// Chain of |
applicationUri | /// The URI for the Microsoft Azure Mobile Service. /// | |
installationId | string | /// The installation id of the application. /// |
Результат | System |
public RequestAsync ( HttpMethod method, string uriPathAndQuery, |
||
method | HttpMethod | /// The HTTP method used to request the resource. /// |
uriPathAndQuery | string | /// The URI of the resource to request (relative to the Mobile Services /// runtime). /// |
user | /// The object representing the user on behalf of whom the request will be sent. /// | |
content | /// Content to send to the resource. /// | |
requestHeaders | string>.IDictionary | /// Additional request headers to include with the request. /// |
features | MobileServiceFeatures | /// Value indicating which features of the SDK are being used in this call. Useful for telemetry. /// |
cancellationToken | The |
|
Результат | Task |
public RequestAsync ( HttpMethod method, string uriPathAndQuery, |
||
method | HttpMethod | /// The HTTP method used to request the resource. /// |
uriPathAndQuery | string | /// The URI of the resource to request (relative to the Mobile Services /// runtime). /// |
user | /// The object representing the user on behalf of whom the request will be sent. /// | |
content | string | /// Optional content to send to the resource. /// |
ensureResponseContent | bool | /// Optional parameter to indicate if the response should include content. /// |
requestHeaders | string>.IDictionary | /// Additional request headers to include with the request. /// |
features | MobileServiceFeatures | /// Value indicating which features of the SDK are being used in this call. Useful for telemetry. /// |
cancellationToken | The |
|
Результат | Task |
public RequestWithoutHandlersAsync ( HttpMethod method, string uriPathAndQuery, |
||
method | HttpMethod | /// The HTTP method used to request the resource. /// |
uriPathAndQuery | string | /// The URI of the resource to request (relative to the Mobile Services /// runtime). /// |
user | /// The object representing the user on behalf of whom the request will be sent. /// | |
content | string | /// Optional content to send to the resource. /// |
features | MobileServiceFeatures | /// Optional MobileServiceFeatures used for telemetry purpose. /// |
Результат | Task |