withSIX.Mini.Infra.Data.Services.DbContexts.Factory C# (CSharp) Method

Factory() private method

private Factory ( ) : GameContext
return GameContext
        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;
        }
    }