Click or drag to resize

RestClient Methods

The RestClient type exposes the following members.

Methods
 NameDescription
Protected methodCopyResponseHeaders Copies the response headers to a separate object that is not tied to the response.
Protected methodCreateCorrectRequestUri Create a uri for a request when the request uri is not valid.
(Inherited from RestClientBase)
Protected methodCreateHttpRequest Create the HTTP request
(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 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
(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, String) Fetches the specified result from the server
(Inherited from RestClientBase)
Public methodGetTResult(String, NameValueCollection) Get the specified TResult
(Inherited from RestClientBase)
Protected methodGetConnectTimeout Gets the TimeSpan that represents the timeout for an InvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection) operation.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetReceiveTimeout Gets the TimeSpan that represents the timeout for entire InvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection) operation including receive and deserialization.
Protected methodGetRequestCredentials Tries to retrieve the credentials that should be used for a HttpWebRequest request. Override this method to provide credentials to requests.
(Inherited from RestClientBase)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHead(String) Executes a HEAD operation against the URL
(Inherited from RestClientBase)
Public methodHead(String, NameValueCollection) Executes a HEAD operation against the 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, NameValueCollection) Invoke the specified method against the server
(Inherited from RestClientBase)
Protected methodInvokeTBody, TResult(String, String, String, TBody, NameValueCollection, WebHeaderCollection) Invoke the specified method against the server
(Inherited from RestClientBase)
Protected methodInvokeInternalTBody, TResult Invokes the request. Implementations of RestClientBase must provide the implementation of InvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection).
(Overrides RestClientBaseInvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection))
Protected methodInvokeInternalOldTBody, TResult 
Public methodLockTResult Perform a lock on the specified resource
(Inherited from RestClientBase)
Protected methodMemberwiseCloneCreates 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)
Protected methodReadResponseBodyTResult Read the response body from the from HttpWebResponse.
Protected methodRemoteCertificateValidation Remote certificate validation errors
Protected methodSetRequestAcceptEncoding Sets the request Accept-Encoding header based on the Description for the client.
(Inherited from RestClientBase)
Protected methodSetRequestCertificateValidationCallback Set the callback for certificate validation for the webrequest.
Protected methodSetRequestClientCertificate Sets the client certificates on the webrequest.
Protected methodSetRequestHeaders Sets the request headers on the webRequest using requestHeaders. Special headers that require parsing are handled.
Protected methodSetRequestProxy Sets the proxy information on the webrequest.
Protected methodSetRequestRemoteData Checks if any remote client information is available from RemoteEndpointUtil and appends it as headers to the webrequest.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnlockTResult Perform an unlock
(Inherited from RestClientBase)
Protected methodWriteRequestBodyAsyncTBody Write the body of the request if provided to the HttpWebRequest.
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 MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also