Click or drag to resize

RestClient Class

Represents an android enabled rest client
Inheritance Hierarchy
SystemObject
  SanteDB.Core.HttpRestClientBase
    SanteDB.DisconnectedClient.HttpRestClient

Namespace:  SanteDB.DisconnectedClient.Http
Assembly:  SanteDB.DisconnectedClient.Core (in SanteDB.DisconnectedClient.Core.dll) Version: 2.2.1
Syntax
public class RestClient : RestClientBase

The RestClient type exposes the following members.

Constructors
  NameDescription
Public methodRestClient
Initializes a new instance of the RestClient class.
Public methodRestClient(ServiceClientDescriptionConfiguration)
Initializes a new instance of the RestClient class.
Top
Properties
  NameDescription
Public propertyClientCertificates
Gets or sets the client certificate
Public propertyCredentials
Gets or sets the credentials to be used for this client
(Inherited from RestClientBase.)
Public propertyDescription
Get the description (configuration) of this service
(Inherited from RestClientBase.)
Top
Methods
  NameDescription
Protected methodCreateHttpRequest
Create HTTP Request object
(Overrides RestClientBaseCreateHttpRequest(String, NameValueCollection).)
Public methodDeleteTResult
Executes an HTTP delete operation on the server
(Inherited from RestClientBase.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from RestClientBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows 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
(Inherited from RestClientBase.)
Protected methodFireResponding
Fire responding event
(Inherited from RestClientBase.)
Public methodGetTResult(String)
Gets the specified item
(Inherited from RestClientBase.)
Public methodGetTResult(String, KeyValuePairString, Object)
Fetches the specified result from the server
(Inherited from RestClientBase.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHead
Perform a head operation against the specified url
(Inherited from RestClientBase.)
Public methodInvokeTBody, TResult(String, String, TBody)
Invokes the specified method against the URL provided
(Inherited from RestClientBase.)
Public methodInvokeTBody, TResult(String, String, String, TBody)
Invokes the specified method against the URL provided
(Inherited from RestClientBase.)
Public methodInvokeTBody, TResult(String, String, String, TBody, KeyValuePairString, Object)
Invoke the specified method against the server
(Inherited from RestClientBase.)
Protected methodInvokeInternalTBody, TResult
Invokes the specified method against the url provided
(Overrides RestClientBaseInvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection).)
Public methodLockTResult
Perform a lock on the specified resource
(Inherited from RestClientBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOptionsTResult
Executes an HTTP options against the server
(Inherited from RestClientBase.)
Public methodPatchTPatch(String, String, TPatch)
Patches the specified resource at url with patch when ifMatch is true
(Inherited from RestClientBase.)
Public methodPatchTPatch(String, String, String, TPatch)
Patches the specified resource at url with patch when ifMatch is true
(Inherited from RestClientBase.)
Public methodPostTBody, TResult(String, TBody)
Execute a post against the url
(Inherited from RestClientBase.)
Public methodPostTBody, TResult(String, String, TBody)
Execute a post against the url
(Inherited from RestClientBase.)
Public methodPutTBody, TResult(String, TBody)
Executes an HTTP PUT against the server
(Inherited from RestClientBase.)
Public methodPutTBody, TResult(String, String, TBody)
Executes an HTTP PUT against the server
(Inherited from RestClientBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnlockTResult
Perform an unlock
(Inherited from RestClientBase.)
Top
Events
  NameDescription
Public eventProgressChanged
Progress has changed
(Inherited from RestClientBase.)
Public eventRequesting
Fired on request
(Inherited from RestClientBase.)
Public eventResponded
Fired on response
(Inherited from RestClientBase.)
Public eventResponding
Fired on response
(Inherited from RestClientBase.)
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 MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also