Amazon.GameLift.AmazonGameLiftClient.CreatePlayerSessionAsync C# (CSharp) Метод

CreatePlayerSessionAsync() публичный Метод

Initiates the asynchronous execution of the CreatePlayerSession operation.
public CreatePlayerSessionAsync ( CreatePlayerSessionRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.GameLift.Model.CreatePlayerSessionRequest Container for the necessary parameters to execute the CreatePlayerSession operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<CreatePlayerSessionResponse> CreatePlayerSessionAsync(CreatePlayerSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreatePlayerSessionRequestMarshaller();
            var unmarshaller = CreatePlayerSessionResponseUnmarshaller.Instance;

            return InvokeAsync<CreatePlayerSessionRequest,CreatePlayerSessionResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonGameLiftClient::CreatePlayerSessionAsync ( string gameSessionId, string playerId, System cancellationToken = default(CancellationToken) ) : Task
AmazonGameLiftClient