Skip to content

Commit 726a2d3

Browse files
Rename PlayFab & Multiplay Allocators to use correct value names for lookup
1 parent 50f1c5e commit 726a2d3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/MultiplayAllocator/Project/MultiplayAllocator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class MultiplayAllocator(ILogger<MultiplayAllocator> logger, IMultiplayHt
3434
public async Task<AllocateResponse> Allocate(IExecutionContext context, AllocateRequest request)
3535
{
3636
var createAllocationUrl = $"https://{MultiplayHost}/v1/allocations/projects/{context.ProjectId}/environments/{context.EnvironmentId}/fleets/{FleetId}/allocations";
37-
var region = request.MatchmakingResults.MatchProperties.GetValueOrDefault("region")?.ToString() ?? DefaultRegion;
37+
var region = request.MatchmakingResults.MatchProperties.GetValueOrDefault("Region")?.ToString() ?? DefaultRegion;
3838

3939
using var client = httpClientFactory.Create(context.ServiceToken);
4040

modules/PlayFabAllocator/Project/PlayFabAllocator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public async Task<AllocateResponse> Allocate(IExecutionContext context, Allocate
111111

112112
var multiplayerInstanceApi = playFabFactory.CreateMultiplayerInstanceApi(playFabApiSettings, authenticationContext);
113113

114-
var preferredRegion = request.MatchmakingResults.MatchProperties.GetValueOrDefault("region")?.ToString() ?? DefaultPlayFabRegion;
114+
var preferredRegion = request.MatchmakingResults.MatchProperties.GetValueOrDefault("Region")?.ToString() ?? DefaultPlayFabRegion;
115115
if (string.IsNullOrWhiteSpace(preferredRegion))
116116
{
117117
logger.LogError("An error occurred when retrieving the region in matchmaking properties. The region field must not be empty or whitespace.");

0 commit comments

Comments
 (0)