Ejemplo n.º 1
0
        public PlayerJsonService(string storagePath, IFileHandler fileHandler)
        {
            _storagePath = Path.Combine(storagePath, "Players.json"); ;
            _fileHandler = fileHandler;
            // create the storage path if it does not exist
            fileHandler.CreatePathIfNotExist(storagePath);

            RefreshCache ();
        }
Ejemplo n.º 2
0
        public GameJsonService(string storagePath, IFileHandler fileHandler)
        {
            _storagePath = storagePath;
            _fileHandler = fileHandler;

            // create the storage path if it does not exist
            fileHandler.CreatePathIfNotExist(storagePath);

            RefreshCache ();
        }