(ProcessesV3 )
Creates a process without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via CreateRoom() can be instant.
using HathoraCloud ;
using HathoraCloud . Models . Shared ;
using HathoraCloud . Models . Operations ;
var sdk = new HathoraCloudSDK (
security : new Security ( ) {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId : "app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
CreateProcessRequest req = new CreateProcessRequest ( ) {
Region = Region . Tokyo ,
} ;
using ( var res = await sdk . ProcessesV3 . CreateProcessAsync ( req ) )
{
// handle response
}
Parameter
Type
Required
Description
request
CreateProcessRequest
✔️
The request object to use for the request.
CreateProcessResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,402,404,422,429,500
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
Retrieve the 10 most recent processes objects for an application . Filter the array by optionally passing in a status
or region
.
using HathoraCloud ;
using HathoraCloud . Models . Shared ;
using HathoraCloud . Models . Operations ;
using System . Collections . Generic ;
var sdk = new HathoraCloudSDK (
security : new Security ( ) {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId : "app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
GetLatestProcessesRequest req = new GetLatestProcessesRequest ( ) { } ;
using ( var res = await sdk . ProcessesV3 . GetLatestProcessesAsync ( req ) )
{
// handle response
}
GetLatestProcessesResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404,429
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
Get details for a process .
using HathoraCloud ;
using HathoraCloud . Models . Shared ;
using HathoraCloud . Models . Operations ;
var sdk = new HathoraCloudSDK (
security : new Security ( ) {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId : "app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
GetProcessRequest req = new GetProcessRequest ( ) {
ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e" ,
} ;
using ( var res = await sdk . ProcessesV3 . GetProcessAsync ( req ) )
{
// handle response
}
Parameter
Type
Required
Description
request
GetProcessRequest
✔️
The request object to use for the request.
GetProcessResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404,429
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
GetProcessesCountExperimental
Count the number of processes objects for an application . Filter by optionally passing in a status
or region
.
using HathoraCloud ;
using HathoraCloud . Models . Shared ;
using HathoraCloud . Models . Operations ;
using System . Collections . Generic ;
var sdk = new HathoraCloudSDK (
security : new Security ( ) {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId : "app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
GetProcessesCountExperimentalRequest req = new GetProcessesCountExperimentalRequest ( ) { } ;
using ( var res = await sdk . ProcessesV3 . GetProcessesCountExperimentalAsync ( req ) )
{
// handle response
}
GetProcessesCountExperimentalResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404,429
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
Stops a process immediately.
using HathoraCloud ;
using HathoraCloud . Models . Shared ;
using HathoraCloud . Models . Operations ;
var sdk = new HathoraCloudSDK (
security : new Security ( ) {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId : "app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
StopProcessRequest req = new StopProcessRequest ( ) {
ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e" ,
} ;
using ( var res = await sdk . ProcessesV3 . StopProcessAsync ( req ) )
{
// handle response
}
Parameter
Type
Required
Description
request
StopProcessRequest
✔️
The request object to use for the request.
StopProcessResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404,429,500
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/