Esempio n. 1
0
 /// <summary>Generates the file path for a user's profile.</summary>
 public static string GenerateUserAvatarFilePath(int userId, UserAvatarSize size)
 {
     return(IOUtilities.CombinePath(CacheClient.GenerateUserAvatarDirectoryPath(userId),
                                    size.ToString() + ".png"));
 }
Esempio n. 2
0
 /// <summary>Delete's a user's avatars from the cache.</summary>
 public static bool DeleteUserAvatar(int userId)
 {
     return(IOUtilities.DeleteDirectory(CacheClient.GenerateUserAvatarDirectoryPath(userId)));
 }
Esempio n. 3
0
        /// <summary>Delete's a user's avatars from the cache.</summary>
        public static bool DeleteUserAvatar(int userId)
        {
            string path = CacheClient.GenerateUserAvatarDirectoryPath(userId);

            return(LocalDataStorage.DeleteDirectory(path));
        }