Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ namespace {{packageName}}.{{clientPackage}}
/// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout.
/// </summary>
/// <param name="container"></param>
public RateLimitProvider(TokenContainer<TTokenBase> container) : base(container.Tokens)
public RateLimitProvider(TokenContainer<TTokenBase> container)
{
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40));

{{#lambda.copy}}
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(_tokens.Length)
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(container.Tokens.Count)
{
FullMode = global::System.Threading.Channels.BoundedChannelFullMode.DropWrite
};
Expand Down Expand Up @@ -65,7 +65,7 @@ namespace {{packageName}}.{{clientPackage}}
{{/hasApiKeyMethods}}

foreach (var availableToken in AvailableTokens)
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
{
{{#hasApiKeyMethods}}
if (token is ApiKeyToken apiKeyToken)
Expand All @@ -85,7 +85,7 @@ namespace {{packageName}}.{{clientPackage}}
}
}

internal override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}})
public override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}})
{
if (!AvailableTokens.TryGetValue(header, out global::System.Threading.Channels.Channel<TTokenBase>{{nrt?}} tokens))
throw new KeyNotFoundException($"Could not locate a token for header '{header}'.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

{{/nrt}}
using System;
using System.Linq;
using System.Collections.Generic;
using {{packageName}}.{{clientPackage}};

namespace {{packageName}}
Expand All @@ -17,23 +15,6 @@ namespace {{packageName}}
/// </summary>
{{>visibility}} abstract class TokenProvider<TTokenBase> where TTokenBase : TokenBase
{
/// <summary>
/// The array of tokens.
/// </summary>
protected TTokenBase[] _tokens;

internal abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}});

/// <summary>
/// Instantiates a TokenProvider.
/// </summary>
/// <param name="tokens"></param>
public TokenProvider(IEnumerable<TTokenBase> tokens)
{
_tokens = tokens.ToArray();

if (_tokens.Length == 0)
throw new ArgumentException("You did not provide any tokens.");
}
public abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default{{^netstandard20OrLater}}(global::System.Threading.CancellationToken){{/netstandard20OrLater}});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
/// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout.
/// </summary>
/// <param name="container"></param>
public RateLimitProvider(TokenContainer<TTokenBase> container) : base(container.Tokens)
public RateLimitProvider(TokenContainer<TTokenBase> container)
{
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40));

global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(_tokens.Length)
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(container.Tokens.Count)
{
FullMode = global::System.Threading.Channels.BoundedChannelFullMode.DropWrite
};

AvailableTokens.Add(string.Empty, global::System.Threading.Channels.Channel.CreateBounded<TTokenBase>(options));

foreach (var availableToken in AvailableTokens)
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
{
token.TokenBecameAvailable += ((sender) => availableToken.Value.Writer.TryWrite((TTokenBase)sender));
}
}

internal override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)
public override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/ComposedEnum/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/ComposedEnum)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/ComposedEnum/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/ComposedEnum)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'
{
if (!AvailableTokens.TryGetValue(header, out global::System.Threading.Channels.Channel<TTokenBase>? tokens))
throw new KeyNotFoundException($"Could not locate a token for header '{header}'.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#nullable enable

using System;
using System.Linq;
using System.Collections.Generic;
using Org.OpenAPITools.Client;

namespace Org.OpenAPITools
Expand All @@ -22,23 +20,6 @@
/// </summary>
public abstract class TokenProvider<TTokenBase> where TTokenBase : TokenBase
{
/// <summary>
/// The array of tokens.
/// </summary>
protected TTokenBase[] _tokens;

internal abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

/// <summary>
/// Instantiates a TokenProvider.
/// </summary>
/// <param name="tokens"></param>
public TokenProvider(IEnumerable<TTokenBase> tokens)
{
_tokens = tokens.ToArray();

if (_tokens.Length == 0)
throw new ArgumentException("You did not provide any tokens.");
}
public abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/ComposedEnum/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/ComposedEnum)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/ComposedEnum/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/ComposedEnum)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
/// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout.
/// </summary>
/// <param name="container"></param>
public RateLimitProvider(TokenContainer<TTokenBase> container) : base(container.Tokens)
public RateLimitProvider(TokenContainer<TTokenBase> container)
{
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40));

global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(_tokens.Length)
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(container.Tokens.Count)
{
FullMode = global::System.Threading.Channels.BoundedChannelFullMode.DropWrite
};

AvailableTokens.Add(string.Empty, global::System.Threading.Channels.Channel.CreateBounded<TTokenBase>(options));

foreach (var availableToken in AvailableTokens)
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
{
token.TokenBecameAvailable += ((sender) => availableToken.Value.Writer.TryWrite((TTokenBase)sender));
}
}

internal override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)
public override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/HelloWorld)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/HelloWorld)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'
{
if (!AvailableTokens.TryGetValue(header, out global::System.Threading.Channels.Channel<TTokenBase>? tokens))
throw new KeyNotFoundException($"Could not locate a token for header '{header}'.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#nullable enable

using System;
using System.Linq;
using System.Collections.Generic;
using Org.OpenAPITools.Client;

namespace Org.OpenAPITools
Expand All @@ -22,23 +20,6 @@
/// </summary>
public abstract class TokenProvider<TTokenBase> where TTokenBase : TokenBase
{
/// <summary>
/// The array of tokens.
/// </summary>
protected TTokenBase[] _tokens;

internal abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

/// <summary>
/// Instantiates a TokenProvider.
/// </summary>
/// <param name="tokens"></param>
public TokenProvider(IEnumerable<TTokenBase> tokens)
{
_tokens = tokens.ToArray();

if (_tokens.Length == 0)
throw new ArgumentException("You did not provide any tokens.");
}
public abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/HelloWorld)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/HelloWorld)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
/// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout.
/// </summary>
/// <param name="container"></param>
public RateLimitProvider(TokenContainer<TTokenBase> container) : base(container.Tokens)
public RateLimitProvider(TokenContainer<TTokenBase> container)
{
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40));

global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(_tokens.Length)
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(container.Tokens.Count)
{
FullMode = global::System.Threading.Channels.BoundedChannelFullMode.DropWrite
};

AvailableTokens.Add(string.Empty, global::System.Threading.Channels.Channel.CreateBounded<TTokenBase>(options));

foreach (var availableToken in AvailableTokens)
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
{
token.TokenBecameAvailable += ((sender) => availableToken.Value.Writer.TryWrite((TTokenBase)sender));
}
}

internal override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)
public override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'
{
if (!AvailableTokens.TryGetValue(header, out global::System.Threading.Channels.Channel<TTokenBase>? tokens))
throw new KeyNotFoundException($"Could not locate a token for header '{header}'.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#nullable enable

using System;
using System.Linq;
using System.Collections.Generic;
using Org.OpenAPITools.Client;

namespace Org.OpenAPITools
Expand All @@ -22,23 +20,6 @@
/// </summary>
public abstract class TokenProvider<TTokenBase> where TTokenBase : TokenBase
{
/// <summary>
/// The array of tokens.
/// </summary>
protected TTokenBase[] _tokens;

internal abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

/// <summary>
/// Instantiates a TokenProvider.
/// </summary>
/// <param name="tokens"></param>
public TokenProvider(IEnumerable<TTokenBase> tokens)
{
_tokens = tokens.ToArray();

if (_tokens.Length == 0)
throw new ArgumentException("You did not provide any tokens.");
}
public abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
/// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout.
/// </summary>
/// <param name="container"></param>
public RateLimitProvider(TokenContainer<TTokenBase> container) : base(container.Tokens)
public RateLimitProvider(TokenContainer<TTokenBase> container)
{
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40));

global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(_tokens.Length)
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(container.Tokens.Count)
{
FullMode = global::System.Threading.Channels.BoundedChannelFullMode.DropWrite
};

AvailableTokens.Add(string.Empty, global::System.Threading.Channels.Channel.CreateBounded<TTokenBase>(options));

foreach (var availableToken in AvailableTokens)
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
{
token.TokenBecameAvailable += ((sender) => availableToken.Value.Writer.TryWrite((TTokenBase)sender));
}
}

internal override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)
public override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/OneOfList)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 50 in samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/OneOfList)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'
{
if (!AvailableTokens.TryGetValue(header, out global::System.Threading.Channels.Channel<TTokenBase>? tokens))
throw new KeyNotFoundException($"Could not locate a token for header '{header}'.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#nullable enable

using System;
using System.Linq;
using System.Collections.Generic;
using Org.OpenAPITools.Client;

namespace Org.OpenAPITools
Expand All @@ -22,23 +20,6 @@
/// </summary>
public abstract class TokenProvider<TTokenBase> where TTokenBase : TokenBase
{
/// <summary>
/// The array of tokens.
/// </summary>
protected TTokenBase[] _tokens;

internal abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

/// <summary>
/// Instantiates a TokenProvider.
/// </summary>
/// <param name="tokens"></param>
public TokenProvider(IEnumerable<TTokenBase> tokens)
{
_tokens = tokens.ToArray();

if (_tokens.Length == 0)
throw new ArgumentException("You did not provide any tokens.");
}
public abstract System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default);

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/OneOfList)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 23 in samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Client/TokenProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/OneOfList)

Missing XML comment for publicly visible type or member 'TokenProvider<TTokenBase>.GetAsync(string, CancellationToken)'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
/// Instantiates a ThrottledTokenProvider. Your tokens will be rate limited based on the token's timeout.
/// </summary>
/// <param name="container"></param>
public RateLimitProvider(TokenContainer<TTokenBase> container) : base(container.Tokens)
public RateLimitProvider(TokenContainer<TTokenBase> container)
{
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
token.StartTimer(token.Timeout ?? TimeSpan.FromMilliseconds(40));

if (container is TokenContainer<ApiKeyToken> apiKeyTokenContainer)
Expand All @@ -50,7 +50,7 @@
}
else
{
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(_tokens.Length)
global::System.Threading.Channels.BoundedChannelOptions options = new global::System.Threading.Channels.BoundedChannelOptions(container.Tokens.Count)
{
FullMode = global::System.Threading.Channels.BoundedChannelFullMode.DropWrite
};
Expand All @@ -59,7 +59,7 @@
}

foreach (var availableToken in AvailableTokens)
foreach(TTokenBase token in _tokens)
foreach(TTokenBase token in container.Tokens)
{
if (token is ApiKeyToken apiKeyToken)
{
Expand All @@ -74,7 +74,7 @@
}
}

internal override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)
public override async System.Threading.Tasks.ValueTask<TTokenBase> GetAsync(string header = "", System.Threading.CancellationToken cancellation = default)

Check warning on line 77 in samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/Tags)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'

Check warning on line 77 in samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs

View workflow job for this annotation

GitHub Actions / Build .Net projects (samples/client/petstore/csharp/generichost/latest/Tags)

Missing XML comment for publicly visible type or member 'RateLimitProvider<TTokenBase>.GetAsync(string, CancellationToken)'
{
if (!AvailableTokens.TryGetValue(header, out global::System.Threading.Channels.Channel<TTokenBase>? tokens))
throw new KeyNotFoundException($"Could not locate a token for header '{header}'.");
Expand Down
Loading
Loading