| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | | 3 | | // governing permissions and limitations under the License. |
| | | 4 | | |
| | | 5 | | using System.Net.Http; |
| | | 6 | | using System.Threading; |
| | | 7 | | using System.Threading.Tasks; |
| | | 8 | | using Microsoft.Azure.KeyVault; |
| | | 9 | | using Microsoft.Azure.Test.HttpRecorder; |
| | | 10 | | |
| | | 11 | | namespace KeyVault.TestFramework |
| | | 12 | | { |
| | | 13 | | public class TestKeyVaultCredential : KeyVaultCredential |
| | | 14 | | { |
| | 120 | 15 | | public TestKeyVaultCredential(KeyVaultClient.AuthenticationCallback authenticationCallback) : base(authenticatio |
| | | 16 | | { |
| | 120 | 17 | | } |
| | | 18 | | |
| | | 19 | | public override Task ProcessHttpRequestAsync(HttpRequestMessage request, |
| | | 20 | | CancellationToken cancellationToken) |
| | | 21 | | { |
| | 912 | 22 | | if (HttpMockServer.Mode == HttpRecorderMode.Record) |
| | | 23 | | { |
| | 0 | 24 | | return base.ProcessHttpRequestAsync(request, cancellationToken); |
| | | 25 | | } |
| | | 26 | | else |
| | | 27 | | { |
| | 1824 | 28 | | return Task.Run(() => { return; }); |
| | | 29 | | } |
| | | 30 | | } |
| | | 31 | | } |
| | | 32 | | } |