Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Mar 21, 2018
2 parents 9d14dc6 + 6947d94 commit da185d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions WebApiClient/Internal/ApiDescriptorCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ static class ApiDescriptorCache
/// <summary>
/// 缓存字典
/// </summary>
private static readonly ConcurrentDictionary<MethodInfo, ApiActionDescriptor> cache;
private static readonly ConcurrentCache<MethodInfo, ApiActionDescriptor> cache;

/// <summary>
/// Api描述的缓存
/// </summary>
static ApiDescriptorCache()
{
cache = new ConcurrentDictionary<MethodInfo, ApiActionDescriptor>();
cache = new ConcurrentCache<MethodInfo, ApiActionDescriptor>();
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion WebApiClient/Internal/ConcurrentCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace WebApiClient
/// </summary>
/// <typeparam name="TKey">键</typeparam>
/// <typeparam name="TValue">值</typeparam>
public class ConcurrentCache<TKey, TValue>
class ConcurrentCache<TKey, TValue>
{
/// <summary>
/// 线程安全字典
Expand Down

0 comments on commit da185d5

Please sign in to comment.