C# Class JSIStudios.SimpleRESTServices.Client.Json.JsonRestServices

Inheritance: RestServiceBase, IRestService
Exibir arquivo Open project: JSIStudios/SimpleRestServices

Public Methods

Method Description
JsonRestServices ( ) : System

Initializes a new instance of the JsonRestServices class with the default JSON string serializer, retry logic, and URL builder.

JsonRestServices ( IRequestLogger requestLogger ) : System

Initializes a new instance of the JsonRestServices class with the specified request logger and the default JSON string serializer and URL builder.

JsonRestServices ( IRequestLogger logger, HttpStatusCode>.IRetryLogic retryLogic, IUrlBuilder urlBuilder, IStringSerializer stringSerializer ) : System

Initializes a new instance of the JsonRestServices class with the specified logger, retry logic, URI builder, and string serializer.

Method Details

JsonRestServices() public method

Initializes a new instance of the JsonRestServices class with the default JSON string serializer, retry logic, and URL builder.
public JsonRestServices ( ) : System
return System

JsonRestServices() public method

Initializes a new instance of the JsonRestServices class with the specified request logger and the default JSON string serializer and URL builder.
public JsonRestServices ( IRequestLogger requestLogger ) : System
requestLogger IRequestLogger The logger to use for requests. Specify null if requests do not need to be logged.
return System

JsonRestServices() public method

Initializes a new instance of the JsonRestServices class with the specified logger, retry logic, URI builder, and string serializer.
/// If is null. /// -or- /// If is null. /// -or- /// If is null. ///
public JsonRestServices ( IRequestLogger logger, HttpStatusCode>.IRetryLogic retryLogic, IUrlBuilder urlBuilder, IStringSerializer stringSerializer ) : System
logger IRequestLogger The logger to use for requests. Specify null if requests do not need to be logged.
retryLogic HttpStatusCode>.IRetryLogic The retry logic to use for REST operations.
urlBuilder IUrlBuilder The URL builder to use for constructing URLs with query parameters.
stringSerializer IStringSerializer The string serializer to use for requests from this service.
return System