C# Класс ClearCanvas.Common.Rest.RestClient

Utility class for interacting with HTTP REST style web services.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateRequest ( string resource ) : System.Net.Request

Creates a request for the specified resource.

CreateRequest ( string resource, object>.Dictionary args ) : System.Net.Request

Creates a request for the specified resource, with the specified query string arguments.

CreateRequest ( string resource, string args ) : System.Net.Request

Creates a request for the specified resource, with the specified query string arguments.

Get ( string resource, object>.Dictionary args ) : System.Net.Response

Convenience method for issuing an HTTP GET request.

Get ( string resource, string args ) : System.Net.Response

Convenience method for issuing an HTTP GET request.

RestClient ( string baseUrl ) : System

Constructs a REST client for the specified base URL.

Приватные методы

Метод Описание
QueryString ( object>.Dictionary args ) : string

Описание методов

CreateRequest() публичный Метод

Creates a request for the specified resource.
public CreateRequest ( string resource ) : System.Net.Request
resource string
Результат System.Net.Request

CreateRequest() публичный Метод

Creates a request for the specified resource, with the specified query string arguments.
public CreateRequest ( string resource, object>.Dictionary args ) : System.Net.Request
resource string
args object>.Dictionary
Результат System.Net.Request

CreateRequest() публичный Метод

Creates a request for the specified resource, with the specified query string arguments.
public CreateRequest ( string resource, string args ) : System.Net.Request
resource string
args string
Результат System.Net.Request

Get() публичный Метод

Convenience method for issuing an HTTP GET request.
public Get ( string resource, object>.Dictionary args ) : System.Net.Response
resource string
args object>.Dictionary
Результат System.Net.Response

Get() публичный Метод

Convenience method for issuing an HTTP GET request.
public Get ( string resource, string args ) : System.Net.Response
resource string
args string
Результат System.Net.Response

RestClient() публичный Метод

Constructs a REST client for the specified base URL.
public RestClient ( string baseUrl ) : System
baseUrl string
Результат System