ServiceBase Class |
Namespace: SolidFire.Core
public class ServiceBase
The ServiceBase type exposes the following members.
Name | Description | |
---|---|---|
ServiceBase |
The ServiceBase class handles the HTTP client and requests/responses. It is a JSON-RPC specific HTTP client.
|
Name | Description | |
---|---|---|
SerializerSettings |
Property accessor for JsonSerializerSettings. This can be used to change the way serialization is handled if necessary.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExtractResultTResult |
Extract an RPC result from a given string response, using the default serializer settings. This static method can be
used to simplify mock testing scenarios for projects built on the SDK.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetConnectionVersion |
Get the version number of the underlying connection
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRequestCount |
Returns the number of requests that have been made in the lifetime of this Service.
This is used as the id in json-rpc calls unless one is passed in during SendRequestAsync.
| |
GetTimeout |
Return the timespan value of the client's timeout.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUri |
Used to retrieve the URI of the request dispatcher.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResetSerializerSettings |
Resets the JsonSerializerSettings back to their defaults which ignores null values.
| |
SendRequestAsyncTResult(String, CancellationToken, NullableInt32) |
Send the Request via Async method and deserialize the result into an expected type. No parameters can be handed to the JSON-RPC remote procedure if using this method.
| |
SendRequestAsyncTResult(String, Object, CancellationToken, NullableInt32) |
Send the Request via Async method and deserialize the result into an expected type.
| |
SetTimeout |
Set the timeout of the HttpClient requests to something other than default.
| |
SetTimeoutToDefault |
Sets the HttpClient timeout to the default.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
OnRequest |
This event is fired immediately before the http request is sent.
| |
OnResponse |
This event is fired immediately after the http response is received.
|