コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public Task <VesselDto> RemovePlayerFromVesselRoleAsync(RemovePlayerOptions options) =>
 CreateInvocationAsync <VesselDto>("RemovePlayerFromVesselRoleAsync", options);
コード例 #3
0
 public Task <GameDto> RemovePlayerFromGameAsync(RemovePlayerOptions options) =>
 CreateInvocationAsync <GameDto>("RemovePlayerFromGameAsync", options);