All URIs are relative to http://localhost:7072/api
Method | HTTP request | Description |
---|---|---|
HttpSignalRNegotiate | POST /signalr/negotiate |
SignalRConnectionInfo HttpSignalRNegotiate ()
This endpoint delivers the connection data for a client.
using System.Collections.Generic;
using System.Diagnostics;
using Agravity.Public.Api;
using Agravity.Public.Client;
using Agravity.Public.Model;
namespace Example
{
public class HttpSignalRNegotiateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost:7072/api";
// Configure API key authorization: function_key
config.AddApiKey("x-functions-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-functions-key", "Bearer");
var apiInstance = new PublicSignalRConnectionManagementApi(config);
try
{
SignalRConnectionInfo result = apiInstance.HttpSignalRNegotiate();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PublicSignalRConnectionManagementApi.HttpSignalRNegotiate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<SignalRConnectionInfo> response = apiInstance.HttpSignalRNegotiateWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PublicSignalRConnectionManagementApi.HttpSignalRNegotiateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The signalr connection info for further processing. | - |
400 | Could not negotiate with SignalR. (Code: 50e617b3-93e8-4b15-8072-0b3c12c26ec7) | - |
401 | Unauthorized. API Key not provided. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]