Interface IRequestFactory
- Namespace
- Coherence.Cloud
- Assembly
- Coherence.Runtime.dll
public interface IRequestFactory
Properties
IsReady
Property Value
- bool
Methods
AddPushCallback(string, Action<string>)
void AddPushCallback(string requestId, Action<string> onPushCallback)
Parameters
requestId
string
onPushCallback
Action<string>
DisconnectWebSocket()
void DisconnectWebSocket()
ForceCreateWebSocket()
void ForceCreateWebSocket()
GetRequestCooldown(string, string)
TimeSpan GetRequestCooldown(string request, string method)
Parameters
request
string
method
string
Returns
- TimeSpan
RemovePushCallback(string, Action<string>)
void RemovePushCallback(string requestPath, Action<string> onPushCallback)
Parameters
requestPath
string
onPushCallback
Action<string>
SendCustomRequest(string, string, string, string, Action<RequestResponse<string>>)
void SendCustomRequest(string endpoint, string path, string method, string body, Action<RequestResponse<string>> callback)
Parameters
endpoint
string
path
string
method
string
body
string
callback
Action<RequestResponse<string>>
SendCustomRequestAsync(string, string, string, string)
Task<string> SendCustomRequestAsync(string endpoint, string path, string method, string body)
Parameters
endpoint
string
path
string
method
string
body
string
Returns
- Task<string>
SendRequest(string, string, string, Dictionary<string, string>, string, string, Action<RequestResponse<string>>)
void SendRequest(string basePath, string method, string body, Dictionary<string, string> headers, string requestName, string sessionToken, Action<RequestResponse<string>> callback)
Parameters
basePath
string
method
string
body
string
headers
Dictionary<string, string>
requestName
string
sessionToken
string
callback
Action<RequestResponse<string>>
SendRequest(string, string, string, string, Dictionary<string, string>, string, string, Action<RequestResponse<string>>)
void SendRequest(string basePath, string pathParams, string method, string body, Dictionary<string, string> headers, string requestName, string sessionToken, Action<RequestResponse<string>> callback)
Parameters
basePath
string
pathParams
string
method
string
body
string
headers
Dictionary<string, string>
requestName
string
sessionToken
string
callback
Action<RequestResponse<string>>
SendRequestAsync(string, string, string, Dictionary<string, string>, string, string)
Task<string> SendRequestAsync(string basePath, string method, string body, Dictionary<string, string> headers, string requestName, string sessionToken)
Parameters
basePath
string
method
string
body
string
headers
Dictionary<string, string>
requestName
string
sessionToken
string
Returns
- Task<string>
SendRequestAsync(string, string, string, string, Dictionary<string, string>, string, string)
Task<string> SendRequestAsync(string basePath, string pathParams, string method, string body, Dictionary<string, string> headers, string requestName, string sessionToken)
Parameters
basePath
string
pathParams
string
method
string
body
string
headers
Dictionary<string, string>
requestName
string
sessionToken
string
Returns
- Task<string>
SetRequestThrottling(TimeSpan)
void SetRequestThrottling(TimeSpan requestInterval)
Parameters
requestInterval
TimeSpan
Events
OnWebSocketConnect
event Action OnWebSocketConnect
Event Type
- Action
OnWebSocketConnectionError
event Action OnWebSocketConnectionError
Event Type
- Action
OnWebSocketDisconnect
event Action OnWebSocketDisconnect
Event Type
- Action