public async Task RemovePlayerFromVesselRoleAsync(Guid invocationId, RemovePlayerOptions options) { try { var value = await _gameService.RemovePlayerFromVesselRoleAsync(options); await ResolveValueAsync(Clients.Caller, nameof(RemovePlayerFromVesselRoleAsync), invocationId, value); } catch (Exception ex) { await RejectAsync(Clients.Caller, nameof(RemovePlayerFromVesselRoleAsync), invocationId, ex.Message); } }
public Task <VesselDto> RemovePlayerFromVesselRoleAsync(RemovePlayerOptions options) => CreateInvocationAsync <VesselDto>("RemovePlayerFromVesselRoleAsync", options);
public Task <GameDto> RemovePlayerFromGameAsync(RemovePlayerOptions options) => CreateInvocationAsync <GameDto>("RemovePlayerFromGameAsync", options);