예제 #1
0
        static UserHandler()
        {
            System.Console.WriteLine("Loading User Accounts...");

            //Access JsonStorage to load user list into memory
            filepath = "Users/UserList";

            _storage     = new InMemoryStorage();
            _jsonStorage = new JsonStorage();

            _storage.StoreAllObjects(_jsonStorage.RestoreObject <Dictionary <string, object> >(filepath));

            System.Console.WriteLine($"Successfully loaded {_storage.StorageLength()} users.");
        }