Пример #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"));
 }
Пример #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)));
 }
Пример #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));
        }