File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/ResourceManager/Network/Commands.Network/Common Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ public NetworkClient(INetworkManagementClient NetworkManagementClient)
54
54
public NetworkClient ( )
55
55
{
56
56
}
57
-
58
57
public string Generatevpnclientpackage ( string resourceGroupName , string virtualNetworkGatewayName , VpnClientParameters parameters )
59
58
{
60
59
return Task . Factory . StartNew ( ( ) => GeneratevpnclientpackageAsync ( resourceGroupName , virtualNetworkGatewayName , parameters ) ) . Unwrap ( ) . GetAwaiter ( ) . GetResult ( ) ;
@@ -139,7 +138,9 @@ public async Task<AzureOperationResponse<string>> GeneratevpnclientpackageWithHt
139
138
}
140
139
// Send Request
141
140
cancellationToken . ThrowIfCancellationRequested ( ) ;
142
- HttpClient httpClient = new HttpClient ( ) ;
141
+
142
+ var client = this . NetworkManagementClient as NetworkManagementClient ;
143
+ HttpClient httpClient = client . HttpClient ;
143
144
HttpResponseMessage httpResponse = await httpClient . SendAsync ( httpRequest , cancellationToken ) . ConfigureAwait ( false ) ;
144
145
145
146
HttpStatusCode statusCode = httpResponse . StatusCode ;
You can’t perform that action at this time.
0 commit comments