CreateRoom
method in Coherence.Cloud.CloudRoomsService
Methods
public void CreateRoom(Action<RequestResponse<RoomData>> onRequestFinished, RoomCreationOptions roomCreationOptions)
Create a room with the given options in the coherence Cloud.
Parameters
| Type | Name | Description |
|---|---|---|
| Action<RequestResponse<RoomData>> | onRequestFinished | Callback that will be invoked when the request finished, it includes the created room. |
| RoomCreationOptions | roomCreationOptions | Instance of all the room options that you wish to create the room with. |
public void CreateRoom(Action<RequestResponse<RoomData>> onRequestFinished, RoomCreationOptions roomCreationOptions, CancellationToken cancellationToken)
Create a room with the given options in the coherence Cloud.
Parameters
| Type | Name | Description |
|---|---|---|
| Action<RequestResponse<RoomData>> | onRequestFinished | Callback that will be invoked when the request finished, it includes the created room. |
| RoomCreationOptions | roomCreationOptions | Instance of all the room options that you wish to create the room with. |
| CancellationToken | cancellationToken | Cancellation token to cancel the request. |