Causes the game server instance to wait to be assigned a session by the Game Server Management Service (GSMS).
public:
void WaitForSessionAssignment()
WaitForSessionAssignment sets the game server instance’s state to standby and blocks until the game server instance gets a session assignment. Once the game server instance is assigned a session its state will change to Active and WaitForSessionAssignment will return.
WaitForSessionAssignment should be called after all of the title’s initialization has completed.
Note This method will throw a gsdk_condemned_exception if the game server instance enters the condemned state.
Header: Declared in ServerStateLifetimeManagement.h.
Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).