Files
csharp/src/KubernetesClient/Autorest/ITokenProvider.cs
Boshi Lian 0d719f1fc6 7.1 remove old autorest (#785)
* init removal

* clean up warning

* bump ver to 7.1

* fix build

* custom http client no long supported

* cleanup unused types

* fix npe

* remove service client

* modern ssl settings

* fix test

* fix client cert null

* fix ctor

* cleanup
2022-02-25 13:33:23 -08:00

27 lines
802 B
C#

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
#pragma warning disable SA1606
#pragma warning disable SA1614
namespace k8s.Autorest
{
/// <summary>
/// Interface to a source of access tokens.
/// </summary>
public interface ITokenProvider
{
/// <summary>
///
/// </summary>
/// <param name="cancellationToken"></param>
/// <returns>AuthenticationHeaderValue</returns>
Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken);
}
}
#pragma warning restore SA1614
#pragma warning restore SA1606