File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -350,3 +350,4 @@ MigrationBackup/
350
350
.ionide /
351
351
352
352
353
+ /.idea
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Net . Http ;
3
+ using RestSharp ;
4
+
5
+ namespace FikaAmazonAPI . AmazonSpApiSDK . Runtime
6
+ {
7
+ public class RestClientSingleton
8
+ {
9
+ private static readonly HttpClient _httpClient = new HttpClient ( new StandardSocketsHttpHandler
10
+ {
11
+ PooledConnectionLifetime = TimeSpan . FromMinutes ( 15 )
12
+ } ) ;
13
+
14
+ static RestClientSingleton ( )
15
+ {
16
+ }
17
+
18
+ private RestClientSingleton ( )
19
+ {
20
+ }
21
+
22
+ public static RestClient RestClient => new RestClient ( _httpClient ) ;
23
+ }
24
+ }
Original file line number Diff line number Diff line change 38
38
<PackageReference Include =" AWSSDK.SecurityToken" Version =" 3.7.100.52" />
39
39
<PackageReference Include =" AWSSDK.SQS" Version =" 3.7.100.52" />
40
40
<PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
41
+ <PackageReference Include =" Microsoft.Extensions.Http" Version =" 7.0.0" />
41
42
<PackageReference Include =" Newtonsoft.Json" Version =" 13.0.2" />
42
43
<PackageReference Include =" RestSharp" Version =" 108.0.3" />
43
44
<PackageReference Include =" RestSharp.Serializers.NewtonsoftJson" Version =" 108.0.3" />
45
+ <PackageReference Include =" StandardSocketsHttpHandler" Version =" 2.2.0.4" />
44
46
<PackageReference Include =" System.Collections" Version =" 4.3.0" />
45
47
<PackageReference Include =" System.ComponentModel.Annotations" Version =" 5.0.0" />
46
48
<PackageReference Include =" System.Reflection" Version =" 4.3.0" />
You can’t perform that action at this time.
0 commit comments