Click or drag to resize

RestClientBase Class

Represents a simple rest client
Inheritance Hierarchy
SystemObject
  SanteDB.Core.HttpRestClientBase
    SanteDB.Core.HttpRestClient

Namespace: SanteDB.Core.Http
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public abstract class RestClientBase : IRestClient, 
	IDisposable, IReportProgressChanged

The RestClientBase type exposes the following members.

Constructors
 NameDescription
Public methodRestClientBase Initializes a new instance of the IRestClient class.
Public methodRestClientBase(IRestClientDescription) Initializes a new instance of the IRestClient class.
Top
Properties
 NameDescription
Public propertyAccept Gets or sets the format to accept data in
Public propertyCredentials Gets or sets the credentials to be used for this client
Public propertyDescription Get the description (configuration) of this service
Top
Methods
 NameDescription
Protected methodCreateCorrectRequestUri Create a uri for a request when the request uri is not valid.
Protected methodCreateHttpRequest Create the HTTP request
Public methodStatic memberCreateQueryString Create the query string from a list of query parameters
Public methodDeleteTResult Executes an HTTP delete operation on the server
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodFireProgressChanged Fire that progress has changed
Protected methodFireResponding Fire responding event
Public methodGet(String) Perform a raw get
Public methodGet(String, NameValueCollection) Perform a raw get
Public methodGetTResult(String) Gets the specified item
Public methodGetTResult(String, KeyValuePairString, String) Fetches the specified result from the server
Public methodGetTResult(String, NameValueCollection) Get the specified TResult
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetRequestCredentials Tries to retrieve the credentials that should be used for a HttpWebRequest request. Override this method to provide credentials to requests.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHead(String) Executes a HEAD operation against the URL
Public methodHead(String, NameValueCollection) Executes a HEAD operation against the URL
Public methodInvokeTBody, TResult(String, String, TBody) Invokes the specified method against the URL provided
Public methodInvokeTBody, TResult(String, String, String, TBody) Invokes the specified method against the URL provided
Public methodInvokeTBody, TResult(String, String, String, TBody, NameValueCollection) Invoke the specified method against the server
Protected methodInvokeTBody, TResult(String, String, String, TBody, NameValueCollection, WebHeaderCollection) Invoke the specified method against the server
Protected methodInvokeInternalTBody, TResult Invokes the request. Implementations of RestClientBase must provide the implementation of InvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection).
Public methodLockTResult Perform a lock on the specified resource
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOptionsTResult Executes an HTTP options against the server
Public methodPatchTPatch(String, String, TPatch) Patches the specified resource at url with patch when ifMatch is true
Public methodPatchTPatch(String, String, String, TPatch) Patches the specified resource at url with patch when ifMatch is true
Public methodPostTBody, TResult(String, TBody) Execute a post against the url
Public methodPostTBody, TResult(String, String, TBody) Execute a post against the url
Public methodPutTBody, TResult(String, TBody) Executes an HTTP PUT against the server
Public methodPutTBody, TResult(String, String, TBody) Executes an HTTP PUT against the server
Protected methodSetRequestAcceptEncoding Sets the request Accept-Encoding header based on the Description for the client.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnlockTResult Perform an unlock
Top
Events
 NameDescription
Public eventProgressChanged Progress has changed
Public eventRequesting Fired on request
Public eventResponded Fired on response
Public eventResponding Fired on response
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodSetTimeout Set timeout on me to millisecondTimeout
(Defined by ExtensionMethods)
Public Extension MethodTryPing Attempts to send an HTTP PING to the rest client service. If successful, the reported time drift and latency are returned.
(Defined by RestClientExtensions)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks
This class represets a base class from which specific implementations of a REST client can be implemented
See Also