Ejemplo n.º 1
0
        GameContext Factory()
        {
            var gameContextJsonImplementation = new GameContextJsonImplementation(_cache);

            // Workaround for nasty issue where we get the DomainEventHandler from the same lazy instance during load :S
            _gameContext = new Lazy <IGameContext>(() => gameContextJsonImplementation);
            return(gameContextJsonImplementation);
        }
 GameContext Factory() {
     var gameContextJsonImplementation = new GameContextJsonImplementation(_cache);
     // Workaround for nasty issue where we get the DomainEventHandler from the same lazy instance during load :S
     _gameContext = new Lazy<IGameContext>(() => gameContextJsonImplementation);
     return gameContextJsonImplementation;
 }