C# Class Microsoft.Iot.IotCoreAppDeployment.RestHelper

Afficher le fichier Open project: ms-iot/iot-utilities Class Usage Examples

Méthodes publiques

Méthode Description
CreateUri ( string restPath ) : Uri
CreateUri ( string restPath, string>.Dictionary arguments ) : Uri
EscapeUriString ( string toEncodeString ) : string
ProcessJsonResponse ( HttpWebResponse response, Type dataContractType ) : object
RestHelper ( IPAddress ipAddress, UserInfo deviceAuthentication ) : System
SendRequestAsync ( Uri requestUrl, HttpMethod method, string passwordToUse, CancellationToken cts ) : Task
SendRequestAsync ( Uri requestUrl, HttpMethod method, string passwordToUse, IEnumerable files, CancellationToken cts ) : Task
SendRequestAsync ( string restPath, HttpMethod method, string passwordToUse, CancellationToken cts ) : Task
SendRequestAsync ( string restPath, HttpMethod method, string passwordToUse, IEnumerable files, CancellationToken cts ) : Task

Private Methods

Méthode Description
ConfigureRequest ( HttpWebRequest request, IEnumerable files ) : Task
ConfigureRequest ( HttpWebRequest request ) : void
HandleError ( WebException exception ) : HttpErrorResult
HttpCancellationHelper ( HttpWebRequest request, CancellationToken cts ) : void

Method Details

CreateUri() public méthode

public CreateUri ( string restPath ) : Uri
restPath string
Résultat System.Uri

CreateUri() public méthode

public CreateUri ( string restPath, string>.Dictionary arguments ) : Uri
restPath string
arguments string>.Dictionary
Résultat System.Uri

EscapeUriString() public static méthode

public static EscapeUriString ( string toEncodeString ) : string
toEncodeString string
Résultat string

ProcessJsonResponse() public static méthode

public static ProcessJsonResponse ( HttpWebResponse response, Type dataContractType ) : object
response System.Net.HttpWebResponse
dataContractType System.Type
Résultat object

RestHelper() public méthode

public RestHelper ( IPAddress ipAddress, UserInfo deviceAuthentication ) : System
ipAddress System.Net.IPAddress
deviceAuthentication UserInfo
Résultat System

SendRequestAsync() public méthode

public SendRequestAsync ( Uri requestUrl, HttpMethod method, string passwordToUse, CancellationToken cts ) : Task
requestUrl System.Uri
method HttpMethod
passwordToUse string
cts System.Threading.CancellationToken
Résultat Task

SendRequestAsync() public méthode

public SendRequestAsync ( Uri requestUrl, HttpMethod method, string passwordToUse, IEnumerable files, CancellationToken cts ) : Task
requestUrl System.Uri
method HttpMethod
passwordToUse string
files IEnumerable
cts System.Threading.CancellationToken
Résultat Task

SendRequestAsync() public méthode

public SendRequestAsync ( string restPath, HttpMethod method, string passwordToUse, CancellationToken cts ) : Task
restPath string
method HttpMethod
passwordToUse string
cts System.Threading.CancellationToken
Résultat Task

SendRequestAsync() public méthode

public SendRequestAsync ( string restPath, HttpMethod method, string passwordToUse, IEnumerable files, CancellationToken cts ) : Task
restPath string
method HttpMethod
passwordToUse string
files IEnumerable
cts System.Threading.CancellationToken
Résultat Task