Returns a new REST service client instance

Namespace: BrightstarDB.Client
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
public static IBrightstarService GetRestClient(
	string restEndpoint,
	IRequestAuthenticator requestAuthenticator = null,
	ICache queryCache = null
)
Visual Basic
Public Shared Function GetRestClient ( 
	restEndpoint As String,
	Optional requestAuthenticator As IRequestAuthenticator = Nothing,
	Optional queryCache As ICache = Nothing
) As IBrightstarService
Visual C++
public:
static IBrightstarService^ GetRestClient(
	String^ restEndpoint, 
	IRequestAuthenticator^ requestAuthenticator = nullptr, 
	ICache^ queryCache = nullptr
)
F#
static member GetRestClient : 
        restEndpoint : string * 
        ?requestAuthenticator : IRequestAuthenticator * 
        ?queryCache : ICache 
(* Defaults:
        let _requestAuthenticator = defaultArg requestAuthenticator null
        let _queryCache = defaultArg queryCache null
*)
-> IBrightstarService 

Parameters

restEndpoint
Type: System..::..String
The URI of the BrightstarDB REST endpoint to connect to
requestAuthenticator (Optional)
Type: BrightstarDB.Client.RestSecurity..::..IRequestAuthenticator
The service to use to apply authentication information to outgoing requests
queryCache (Optional)
Type: BrightstarDB.Caching..::..ICache
A cache instance for the client to use for caching SPARQL query responses

Return Value

Type: IBrightstarService
A new IBrightstarService instance

See Also