/// <summary> /// Initializes a new instance of the <see cref = "Room" /> class without a room name. /// </summary> /// <param name = "name"> /// The room name. /// </param> /// <param name="roomCache"> /// The <see cref="RoomCacheBase"/> instance to which the room belongs. /// </param> /// <param name="gameStateFactory">Fatory for game state</param> /// <param name="maxEmptyRoomTTL"> /// A value indicating how long the room instance will be keeped alive /// in the room cache after all peers have left the room. /// </param> /// <param name="executionFiber">Fiber which will execute rooms actions</param> public Room(string name, RoomCacheBase roomCache = null, IGameStateFactory gameStateFactory = null, int maxEmptyRoomTTL = 0, ExtendedPoolFiber executionFiber = null) : this(name, executionFiber, roomCache, gameStateFactory, maxEmptyRoomTTL) { this.ExecutionFiber.Start(); RemoveRoomPath = RemoveState.Alive; }
public async Task <object> RemoveAsync(RemoveState state) { var result = await _removeCommand.ExecuteAsync(state); return(result); }