File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ private HttpResponse fetchAccessToken()
60
60
//create a new client for acceess token.
61
61
HttpClient AccessTokenClient = new HttpClient ( environment ) ;
62
62
AccessTokenRequest request = new AccessTokenRequest ( environment , refreshToken ) ;
63
+ var executeTask = this . client . Execute ( request ) ;
63
64
//make fetch access token call sync to avoid deadlock.
64
65
Task < HttpResponse > executeTask = Task . Run < HttpResponse > ( async ( ) => await AccessTokenClient . Execute ( request ) ) ;
65
66
return executeTask . Result ;
Original file line number Diff line number Diff line change 9
9
<PackageReference Include =" BraintreeHttp-Dotnet" Version =" 0.3.0" />
10
10
</ItemGroup >
11
11
12
- </Project >
12
+ </Project >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
16
16
<Folder Include =" CaptureIntentExamples\" />
17
17
<Folder Include =" AuthorizeIntentExamples\" />
18
18
</ItemGroup >
19
- </Project >
19
+ </Project >
You can’t perform that action at this time.
0 commit comments