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 (); }
public GameJsonService(string storagePath, IFileHandler fileHandler) { _storagePath = storagePath; _fileHandler = fileHandler; // create the storage path if it does not exist fileHandler.CreatePathIfNotExist(storagePath); RefreshCache (); }