Amazon.GameLift.AmazonGameLiftClient.CreatePlayerSessions C# (CSharp) Method

CreatePlayerSessions() public method

Adds a group of players to a game session. Similar to CreatePlayerSession, this action allows you to add multiple players in a single call, which is useful for games that provide party and/or matchmaking features. A game session must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have an open player slot before players can be added to the session.

To create player sessions, specify a game session ID and a list of player IDs. If successful, the players are added to the game session and a set of new PlayerSession objects is returned.

/// The game instance is currently full and cannot allow the requested player(s) to join. /// Clients can retry such requests immediately or after a waiting period. /// /// The service encountered an unrecoverable internal failure while processing the request. /// Clients can retry such requests immediately or after a waiting period. /// /// The requested operation would cause a conflict with the current state of a resource /// associated with the request and/or the game instance. Resolve the conflict before /// retrying. /// /// One or more parameter values in the request are invalid. Correct the invalid parameter /// values before retrying. /// /// A service resource associated with the request could not be found. Clients should /// not retry such requests. /// /// The service is unable to resolve the routing for a particular alias because it has /// a terminal RoutingStrategy associated with it. The message returned in this /// exception is the message defined in the routing strategy itself. Such requests should /// only be retried if the routing strategy for the specified alias is modified. /// /// The client failed authentication. Clients should not retry such requests. ///
public CreatePlayerSessions ( CreatePlayerSessionsRequest request ) : Amazon.GameLift.Model.CreatePlayerSessionsResponse
request Amazon.GameLift.Model.CreatePlayerSessionsRequest Container for the necessary parameters to execute the CreatePlayerSessions service method.
return Amazon.GameLift.Model.CreatePlayerSessionsResponse
        public CreatePlayerSessionsResponse CreatePlayerSessions(CreatePlayerSessionsRequest request)
        {
            var marshaller = new CreatePlayerSessionsRequestMarshaller();
            var unmarshaller = CreatePlayerSessionsResponseUnmarshaller.Instance;

            return Invoke<CreatePlayerSessionsRequest,CreatePlayerSessionsResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonGameLiftClient::CreatePlayerSessions ( string gameSessionId, List playerIds ) : Amazon.GameLift.Model.CreatePlayerSessionsResponse
AmazonGameLiftClient