public void StartInstance(GameData gameData, bool waitForEnd) { var instance = new ScriptedGameInstance(this, gameData, externalGameUrl, externalGameSSLUrl, GetInstanceSettings(gameData), accountingFacadeFactory.CreateFacade(), reportTracker); instance.Start(); if (waitForEnd) { instance.WaitReady(); } }
public void InitializeInstances() { if (isDisposed) { return; } Log(Id, "Initializing game instances..."); var games = ExternalServiceFacade.GetGameCoreService().GetGames(gameTypeEntity.Id); foreach (var game in games) { var instance = new ScriptedGameInstance(this, game, externalGameUrl, externalGameSSLUrl, GetInstanceSettings(game), accountingFacadeFactory.CreateFacade(), reportTracker); instance.Start(); } }