Skip to content

Commit 48b040d

Browse files
committed
optimization
1 parent 97a1102 commit 48b040d

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

eg-03-csharp-auth-code-grant-core/Common/IRequestItemsService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
namespace eg_03_csharp_auth_code_grant_core
55
{
66
public interface IRequestItemsService
7-
{
8-
//ApiClient DefaultApiClient { get; }
9-
7+
{
108
string EgName { get; set; }
119

1210
Session Session { get; set; }

eg-03-csharp-auth-code-grant-core/Common/RequestItemService.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@ public RequestItemsService(IHttpContextAccessor httpContextAccessor, IMemoryCach
2929
}
3030
}
3131

32-
//public ApiClient DefaultApiClient
33-
//{
34-
// get
35-
// {
36-
// var key = string.Format(API_CLIENT_KEY, _id);
37-
// ApiClient apiClient = _cache.Get<ApiClient>("apiClient");
38-
// if (apiClient == null)
39-
// {
40-
// apiClient = new ApiClient(BASE_URI);
41-
// _cache.Set(key, apiClient);
42-
// }
43-
44-
// return apiClient;
45-
// }
46-
//}
47-
4832
private string GetKey(string key)
4933
{
5034
return string.Format("{0}_{1}", _id, key);

0 commit comments

Comments
 (0)