@tsonic/aspnetcore 10.0.5 → 10.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.AspNetCore/internal/index.d.ts +6 -6
- package/Microsoft.AspNetCore.Antiforgery/internal/index.d.ts +15 -9
- package/Microsoft.AspNetCore.Authentication/internal/index.d.ts +182 -112
- package/Microsoft.AspNetCore.Authentication.BearerToken/internal/index.d.ts +13 -5
- package/Microsoft.AspNetCore.Authentication.Cookies/internal/index.d.ts +52 -34
- package/Microsoft.AspNetCore.Authentication.OAuth/internal/index.d.ts +42 -28
- package/Microsoft.AspNetCore.Authentication.OAuth.Claims/internal/index.d.ts +25 -11
- package/Microsoft.AspNetCore.Authorization/internal/index.d.ts +97 -75
- package/Microsoft.AspNetCore.Authorization.Infrastructure/internal/index.d.ts +33 -31
- package/Microsoft.AspNetCore.Authorization.Policy/internal/index.d.ts +15 -13
- package/Microsoft.AspNetCore.Builder/internal/index.d.ts +183 -139
- package/Microsoft.AspNetCore.Builder.Extensions/internal/index.d.ts +15 -5
- package/Microsoft.AspNetCore.Components/internal/index.d.ts +288 -191
- package/Microsoft.AspNetCore.Components.Authorization/internal/index.d.ts +29 -17
- package/Microsoft.AspNetCore.Components.CompilerServices/internal/index.d.ts +8 -8
- package/Microsoft.AspNetCore.Components.Endpoints/internal/index.d.ts +11 -5
- package/Microsoft.AspNetCore.Components.Endpoints.Infrastructure/internal/index.d.ts +6 -4
- package/Microsoft.AspNetCore.Components.Forms/internal/index.d.ts +131 -105
- package/Microsoft.AspNetCore.Components.Forms.Mapping/internal/index.d.ts +13 -9
- package/Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure/internal/index.d.ts +7 -5
- package/Microsoft.AspNetCore.Components.Infrastructure/internal/index.d.ts +9 -7
- package/Microsoft.AspNetCore.Components.RenderTree/internal/index.d.ts +36 -15
- package/Microsoft.AspNetCore.Components.Rendering/internal/index.d.ts +12 -8
- package/Microsoft.AspNetCore.Components.Routing/internal/index.d.ts +30 -22
- package/Microsoft.AspNetCore.Components.Sections/internal/index.d.ts +9 -9
- package/Microsoft.AspNetCore.Components.Server/internal/index.d.ts +26 -22
- package/Microsoft.AspNetCore.Components.Server.Circuits/internal/index.d.ts +11 -5
- package/Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage/internal/index.d.ts +13 -5
- package/Microsoft.AspNetCore.Components.Web/internal/index.d.ts +75 -37
- package/Microsoft.AspNetCore.Components.Web.HtmlRendering/internal/index.d.ts +6 -4
- package/Microsoft.AspNetCore.Components.Web.Infrastructure/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Components.Web.Internal/internal/index.d.ts +1 -1
- package/Microsoft.AspNetCore.Components.Web.Virtualization/internal/index.d.ts +21 -15
- package/Microsoft.AspNetCore.Connections/internal/index.d.ts +77 -49
- package/Microsoft.AspNetCore.Connections.Abstractions/internal/index.d.ts +4 -4
- package/Microsoft.AspNetCore.Connections.Features/internal/index.d.ts +20 -20
- package/Microsoft.AspNetCore.CookiePolicy/internal/index.d.ts +13 -7
- package/Microsoft.AspNetCore.Cors/internal/index.d.ts +10 -8
- package/Microsoft.AspNetCore.Cors.Infrastructure/internal/index.d.ts +39 -29
- package/Microsoft.AspNetCore.Cryptography.KeyDerivation/internal/index.d.ts +2 -2
- package/Microsoft.AspNetCore.DataProtection/internal/index.d.ts +24 -20
- package/Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption/internal/index.d.ts +16 -16
- package/Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel/internal/index.d.ts +39 -27
- package/Microsoft.AspNetCore.DataProtection.Infrastructure/internal/index.d.ts +1 -1
- package/Microsoft.AspNetCore.DataProtection.Internal/internal/index.d.ts +1 -1
- package/Microsoft.AspNetCore.DataProtection.KeyManagement/internal/index.d.ts +21 -19
- package/Microsoft.AspNetCore.DataProtection.KeyManagement.Internal/internal/index.d.ts +9 -5
- package/Microsoft.AspNetCore.DataProtection.Repositories/internal/index.d.ts +19 -15
- package/Microsoft.AspNetCore.DataProtection.XmlEncryption/internal/index.d.ts +34 -32
- package/Microsoft.AspNetCore.Diagnostics/internal/index.d.ts +43 -21
- package/Microsoft.AspNetCore.Diagnostics.HealthChecks/internal/index.d.ts +15 -11
- package/Microsoft.AspNetCore.HostFiltering/internal/index.d.ts +12 -8
- package/Microsoft.AspNetCore.Hosting/internal/index.d.ts +57 -47
- package/Microsoft.AspNetCore.Hosting.Builder/internal/index.d.ts +5 -5
- package/Microsoft.AspNetCore.Hosting.Infrastructure/internal/index.d.ts +6 -6
- package/Microsoft.AspNetCore.Hosting.Server/internal/index.d.ts +6 -4
- package/Microsoft.AspNetCore.Hosting.Server.Features/internal/index.d.ts +8 -8
- package/Microsoft.AspNetCore.Hosting.StaticWebAssets/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Html/internal/index.d.ts +15 -13
- package/Microsoft.AspNetCore.Http/internal/index.d.ts +287 -223
- package/Microsoft.AspNetCore.Http.Connections/internal/index.d.ts +32 -16
- package/Microsoft.AspNetCore.Http.Extensions/internal/index.d.ts +18 -16
- package/Microsoft.AspNetCore.Http.Features/internal/index.d.ts +98 -91
- package/Microsoft.AspNetCore.Http.Features.Authentication/internal/index.d.ts +6 -6
- package/Microsoft.AspNetCore.Http.Headers/internal/index.d.ts +31 -27
- package/Microsoft.AspNetCore.Http.HttpResults/internal/index.d.ts +175 -173
- package/Microsoft.AspNetCore.Http.Json/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Http.Metadata/internal/index.d.ts +28 -26
- package/Microsoft.AspNetCore.Http.Timeouts/internal/index.d.ts +16 -8
- package/Microsoft.AspNetCore.HttpLogging/internal/index.d.ts +21 -11
- package/Microsoft.AspNetCore.HttpOverrides/internal/index.d.ts +23 -13
- package/Microsoft.AspNetCore.HttpsPolicy/internal/index.d.ts +21 -13
- package/Microsoft.AspNetCore.Identity/internal/index.d.ts +573 -458
- package/Microsoft.AspNetCore.Identity.Data/internal/index.d.ts +23 -3
- package/Microsoft.AspNetCore.Identity.UI.Services/internal/index.d.ts +6 -6
- package/Microsoft.AspNetCore.Localization/internal/index.d.ts +41 -27
- package/Microsoft.AspNetCore.Localization.Routing/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Mvc/internal/index.d.ts +377 -205
- package/Microsoft.AspNetCore.Mvc.Abstractions/internal/index.d.ts +21 -13
- package/Microsoft.AspNetCore.Mvc.ActionConstraints/internal/index.d.ts +23 -13
- package/Microsoft.AspNetCore.Mvc.ApiExplorer/internal/index.d.ts +54 -30
- package/Microsoft.AspNetCore.Mvc.ApplicationModels/internal/index.d.ts +147 -125
- package/Microsoft.AspNetCore.Mvc.ApplicationParts/internal/index.d.ts +45 -25
- package/Microsoft.AspNetCore.Mvc.Authorization/internal/index.d.ts +12 -10
- package/Microsoft.AspNetCore.Mvc.Controllers/internal/index.d.ts +33 -25
- package/Microsoft.AspNetCore.Mvc.Core.Infrastructure/internal/index.d.ts +1 -1
- package/Microsoft.AspNetCore.Mvc.Cors/internal/index.d.ts +7 -7
- package/Microsoft.AspNetCore.Mvc.DataAnnotations/internal/index.d.ts +26 -18
- package/Microsoft.AspNetCore.Mvc.Diagnostics/internal/index.d.ts +172 -119
- package/Microsoft.AspNetCore.Mvc.Filters/internal/index.d.ts +76 -44
- package/Microsoft.AspNetCore.Mvc.Formatters/internal/index.d.ts +121 -89
- package/Microsoft.AspNetCore.Mvc.Formatters.Xml/internal/index.d.ts +44 -36
- package/Microsoft.AspNetCore.Mvc.Infrastructure/internal/index.d.ts +103 -77
- package/Microsoft.AspNetCore.Mvc.Localization/internal/index.d.ts +27 -25
- package/Microsoft.AspNetCore.Mvc.ModelBinding/internal/index.d.ts +214 -140
- package/Microsoft.AspNetCore.Mvc.ModelBinding.Binders/internal/index.d.ts +136 -128
- package/Microsoft.AspNetCore.Mvc.ModelBinding.Metadata/internal/index.d.ts +127 -105
- package/Microsoft.AspNetCore.Mvc.ModelBinding.Validation/internal/index.d.ts +71 -43
- package/Microsoft.AspNetCore.Mvc.Razor/internal/index.d.ts +70 -56
- package/Microsoft.AspNetCore.Mvc.Razor.Compilation/internal/index.d.ts +15 -9
- package/Microsoft.AspNetCore.Mvc.Razor.Infrastructure/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Mvc.Razor.Internal/internal/index.d.ts +4 -2
- package/Microsoft.AspNetCore.Mvc.Razor.TagHelpers/internal/index.d.ts +25 -19
- package/Microsoft.AspNetCore.Mvc.RazorPages/internal/index.d.ts +60 -42
- package/Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure/internal/index.d.ts +49 -37
- package/Microsoft.AspNetCore.Mvc.Rendering/internal/index.d.ts +107 -95
- package/Microsoft.AspNetCore.Mvc.Routing/internal/index.d.ts +35 -25
- package/Microsoft.AspNetCore.Mvc.TagHelpers/internal/index.d.ts +88 -72
- package/Microsoft.AspNetCore.Mvc.TagHelpers.Cache/internal/index.d.ts +27 -23
- package/Microsoft.AspNetCore.Mvc.ViewComponents/internal/index.d.ts +59 -49
- package/Microsoft.AspNetCore.Mvc.ViewEngines/internal/index.d.ts +15 -11
- package/Microsoft.AspNetCore.Mvc.ViewFeatures/internal/index.d.ts +193 -152
- package/Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure/internal/index.d.ts +7 -5
- package/Microsoft.AspNetCore.OutputCaching/internal/index.d.ts +36 -26
- package/Microsoft.AspNetCore.RateLimiting/internal/index.d.ts +20 -12
- package/Microsoft.AspNetCore.Razor.Hosting/internal/index.d.ts +24 -10
- package/Microsoft.AspNetCore.Razor.Runtime.TagHelpers/internal/index.d.ts +17 -11
- package/Microsoft.AspNetCore.Razor.TagHelpers/internal/index.d.ts +61 -35
- package/Microsoft.AspNetCore.RequestDecompression/internal/index.d.ts +7 -5
- package/Microsoft.AspNetCore.ResponseCaching/internal/index.d.ts +14 -10
- package/Microsoft.AspNetCore.ResponseCompression/internal/index.d.ts +41 -29
- package/Microsoft.AspNetCore.Rewrite/internal/index.d.ts +18 -12
- package/Microsoft.AspNetCore.Routing/internal/index.d.ts +189 -135
- package/Microsoft.AspNetCore.Routing.Constraints/internal/index.d.ts +79 -79
- package/Microsoft.AspNetCore.Routing.Internal/internal/index.d.ts +5 -3
- package/Microsoft.AspNetCore.Routing.Matching/internal/index.d.ts +42 -27
- package/Microsoft.AspNetCore.Routing.Patterns/internal/index.d.ts +38 -20
- package/Microsoft.AspNetCore.Routing.Template/internal/index.d.ts +25 -9
- package/Microsoft.AspNetCore.Routing.Tree/internal/index.d.ts +27 -13
- package/Microsoft.AspNetCore.Server.HttpSys/internal/index.d.ts +32 -18
- package/Microsoft.AspNetCore.Server.IIS/internal/index.d.ts +8 -4
- package/Microsoft.AspNetCore.Server.IISIntegration/internal/index.d.ts +15 -11
- package/Microsoft.AspNetCore.Server.Kestrel/internal/index.d.ts +16 -12
- package/Microsoft.AspNetCore.Server.Kestrel.Core/internal/index.d.ts +48 -36
- package/Microsoft.AspNetCore.Server.Kestrel.Core.Features/internal/index.d.ts +3 -3
- package/Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http/internal/index.d.ts +14 -8
- package/Microsoft.AspNetCore.Server.Kestrel.Https/internal/index.d.ts +23 -17
- package/Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes/internal/index.d.ts +10 -6
- package/Microsoft.AspNetCore.Server.Kestrel.Transport.Quic/internal/index.d.ts +6 -4
- package/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets/internal/index.d.ts +24 -18
- package/Microsoft.AspNetCore.Session/internal/index.d.ts +24 -22
- package/Microsoft.AspNetCore.SignalR/internal/index.d.ts +140 -93
- package/Microsoft.AspNetCore.SignalR.Protocol/internal/index.d.ts +59 -25
- package/Microsoft.AspNetCore.StaticAssets/internal/index.d.ts +19 -11
- package/Microsoft.AspNetCore.StaticAssets.Infrastructure/internal/index.d.ts +4 -4
- package/Microsoft.AspNetCore.StaticFiles/internal/index.d.ts +30 -22
- package/Microsoft.AspNetCore.StaticFiles.Infrastructure/internal/index.d.ts +7 -3
- package/Microsoft.AspNetCore.WebSockets/internal/index.d.ts +14 -10
- package/Microsoft.AspNetCore.WebUtilities/internal/index.d.ts +103 -73
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +125 -123
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +10 -8
- package/Microsoft.JSInterop/internal/index.d.ts +65 -53
- package/Microsoft.JSInterop.Implementation/internal/index.d.ts +28 -26
- package/Microsoft.JSInterop.Infrastructure/internal/index.d.ts +8 -2
- package/Microsoft.Net.Http.Headers/internal/index.d.ts +88 -60
- package/System.Formats.Cbor/internal/index.d.ts +27 -21
- package/System.Security.Claims/internal/index.d.ts +3 -3
- package/System.Threading.RateLimiting/internal/index.d.ts +59 -29
- package/__internal/extensions/index.d.ts +1648 -1351
- package/package.json +4 -4
|
@@ -9,11 +9,11 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
9
9
|
import type { ptr } from "@tsonic/core/types.js";
|
|
10
10
|
|
|
11
11
|
// Import types from other namespaces
|
|
12
|
-
import type {
|
|
13
|
-
import
|
|
14
|
-
import type {
|
|
15
|
-
import
|
|
16
|
-
import type {
|
|
12
|
+
import type { IEnumerable_1, IEqualityComparer_1, KeyValuePair_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
13
|
+
import type { ValueTask, ValueTask_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
14
|
+
import type { CancellationToken } from "@tsonic/dotnet/System.Threading/internal/index.js";
|
|
15
|
+
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
+
import type { Boolean as ClrBoolean, Enum, Func_2, IAsyncDisposable, IComparable, IConvertible, IDisposable, IEquatable_1, IFormattable, Int32, Int64, ISpanFormattable, Nullable_1, Object as ClrObject, String as ClrString, TimeSpan, ValueType, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
17
17
|
|
|
18
18
|
export enum QueueProcessingOrder {
|
|
19
19
|
OldestFirst = 0,
|
|
@@ -22,24 +22,28 @@ export enum QueueProcessingOrder {
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
export interface RateLimitPartition_1$instance<TKey> {
|
|
25
|
-
readonly
|
|
25
|
+
readonly __tsonic_type_System_Threading_RateLimiting_RateLimitPartition_1: never;
|
|
26
|
+
|
|
27
|
+
readonly Factory: Func_2<TKey, RateLimiter>;
|
|
26
28
|
readonly PartitionKey: TKey;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
export const RateLimitPartition_1: {
|
|
31
|
-
new<TKey>(partitionKey: TKey, factory:
|
|
33
|
+
new<TKey>(partitionKey: TKey, factory: Func_2<TKey, RateLimiter>): RateLimitPartition_1<TKey>;
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
export type RateLimitPartition_1<TKey> = RateLimitPartition_1$instance<TKey>;
|
|
36
38
|
|
|
37
39
|
export interface ConcurrencyLimiter$instance extends RateLimiter {
|
|
40
|
+
readonly __tsonic_type_System_Threading_RateLimiting_ConcurrencyLimiter: never;
|
|
41
|
+
|
|
38
42
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
39
43
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
40
44
|
|
|
41
|
-
readonly IdleDuration:
|
|
42
|
-
AcquireAsyncCore(permitCount: int, cancellationToken?: CancellationToken):
|
|
45
|
+
readonly IdleDuration: Nullable_1<TimeSpan>;
|
|
46
|
+
AcquireAsyncCore(permitCount: int, cancellationToken?: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
43
47
|
AttemptAcquireCore(permitCount: int): RateLimitLease;
|
|
44
48
|
Dispose(disposing: boolean): void;
|
|
45
49
|
Dispose(): void;
|
|
@@ -56,6 +60,8 @@ export const ConcurrencyLimiter: {
|
|
|
56
60
|
export type ConcurrencyLimiter = ConcurrencyLimiter$instance;
|
|
57
61
|
|
|
58
62
|
export interface ConcurrencyLimiterOptions$instance {
|
|
63
|
+
readonly __tsonic_type_System_Threading_RateLimiting_ConcurrencyLimiterOptions: never;
|
|
64
|
+
|
|
59
65
|
PermitLimit: int;
|
|
60
66
|
QueueLimit: int;
|
|
61
67
|
QueueProcessingOrder: QueueProcessingOrder;
|
|
@@ -70,13 +76,15 @@ export const ConcurrencyLimiterOptions: {
|
|
|
70
76
|
export type ConcurrencyLimiterOptions = ConcurrencyLimiterOptions$instance;
|
|
71
77
|
|
|
72
78
|
export interface FixedWindowRateLimiter$instance extends ReplenishingRateLimiter {
|
|
79
|
+
readonly __tsonic_type_System_Threading_RateLimiting_FixedWindowRateLimiter: never;
|
|
80
|
+
|
|
73
81
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
74
82
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
75
83
|
|
|
76
|
-
readonly IdleDuration:
|
|
84
|
+
readonly IdleDuration: Nullable_1<TimeSpan>;
|
|
77
85
|
readonly IsAutoReplenishing: boolean;
|
|
78
86
|
readonly ReplenishmentPeriod: TimeSpan;
|
|
79
|
-
AcquireAsyncCore(permitCount: int, cancellationToken?: CancellationToken):
|
|
87
|
+
AcquireAsyncCore(permitCount: int, cancellationToken?: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
80
88
|
AttemptAcquireCore(permitCount: int): RateLimitLease;
|
|
81
89
|
Dispose(disposing: boolean): void;
|
|
82
90
|
Dispose(): void;
|
|
@@ -94,6 +102,8 @@ export const FixedWindowRateLimiter: {
|
|
|
94
102
|
export type FixedWindowRateLimiter = FixedWindowRateLimiter$instance;
|
|
95
103
|
|
|
96
104
|
export interface FixedWindowRateLimiterOptions$instance {
|
|
105
|
+
readonly __tsonic_type_System_Threading_RateLimiting_FixedWindowRateLimiterOptions: never;
|
|
106
|
+
|
|
97
107
|
AutoReplenishment: boolean;
|
|
98
108
|
PermitLimit: int;
|
|
99
109
|
QueueLimit: int;
|
|
@@ -110,6 +120,8 @@ export const FixedWindowRateLimiterOptions: {
|
|
|
110
120
|
export type FixedWindowRateLimiterOptions = FixedWindowRateLimiterOptions$instance;
|
|
111
121
|
|
|
112
122
|
export interface MetadataName_1$instance<T> {
|
|
123
|
+
readonly __tsonic_type_System_Threading_RateLimiting_MetadataName_1: never;
|
|
124
|
+
|
|
113
125
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
114
126
|
|
|
115
127
|
readonly Name: string;
|
|
@@ -128,11 +140,13 @@ export const MetadataName_1: {
|
|
|
128
140
|
export type MetadataName_1<T> = MetadataName_1$instance<T>;
|
|
129
141
|
|
|
130
142
|
export interface PartitionedRateLimiter_1$instance<TResource> {
|
|
143
|
+
readonly __tsonic_type_System_Threading_RateLimiting_PartitionedRateLimiter_1: never;
|
|
144
|
+
|
|
131
145
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
132
146
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
133
147
|
|
|
134
|
-
AcquireAsync(resource: TResource, permitCount?: int, cancellationToken?: CancellationToken):
|
|
135
|
-
AcquireAsyncCore(resource: TResource, permitCount: int, cancellationToken: CancellationToken):
|
|
148
|
+
AcquireAsync(resource: TResource, permitCount?: int, cancellationToken?: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
149
|
+
AcquireAsyncCore(resource: TResource, permitCount: int, cancellationToken: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
136
150
|
AttemptAcquire(resource: TResource, permitCount?: int): RateLimitLease;
|
|
137
151
|
AttemptAcquireCore(resource: TResource, permitCount: int): RateLimitLease;
|
|
138
152
|
Dispose(disposing: boolean): void;
|
|
@@ -140,7 +154,7 @@ export interface PartitionedRateLimiter_1$instance<TResource> {
|
|
|
140
154
|
DisposeAsync(): ValueTask;
|
|
141
155
|
DisposeAsyncCore(): ValueTask;
|
|
142
156
|
GetStatistics(resource: TResource): RateLimiterStatistics | undefined;
|
|
143
|
-
WithTranslatedKey<TOuter>(keyAdapter:
|
|
157
|
+
WithTranslatedKey<TOuter>(keyAdapter: Func_2<TOuter, TResource>, leaveOpen: boolean): PartitionedRateLimiter_1<TOuter>;
|
|
144
158
|
}
|
|
145
159
|
|
|
146
160
|
|
|
@@ -151,12 +165,14 @@ export const PartitionedRateLimiter_1: (abstract new<TResource>() => Partitioned
|
|
|
151
165
|
export type PartitionedRateLimiter_1<TResource> = PartitionedRateLimiter_1$instance<TResource>;
|
|
152
166
|
|
|
153
167
|
export interface RateLimiter$instance {
|
|
168
|
+
readonly __tsonic_type_System_Threading_RateLimiting_RateLimiter: never;
|
|
169
|
+
|
|
154
170
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
155
171
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
156
172
|
|
|
157
|
-
readonly IdleDuration:
|
|
158
|
-
AcquireAsync(permitCount?: int, cancellationToken?: CancellationToken):
|
|
159
|
-
AcquireAsyncCore(permitCount: int, cancellationToken: CancellationToken):
|
|
173
|
+
readonly IdleDuration: Nullable_1<TimeSpan>;
|
|
174
|
+
AcquireAsync(permitCount?: int, cancellationToken?: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
175
|
+
AcquireAsyncCore(permitCount: int, cancellationToken: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
160
176
|
AttemptAcquire(permitCount?: int): RateLimitLease;
|
|
161
177
|
AttemptAcquireCore(permitCount: int): RateLimitLease;
|
|
162
178
|
Dispose(disposing: boolean): void;
|
|
@@ -175,6 +191,8 @@ export const RateLimiter: (abstract new() => RateLimiter) & {
|
|
|
175
191
|
export type RateLimiter = RateLimiter$instance;
|
|
176
192
|
|
|
177
193
|
export interface RateLimiterStatistics$instance {
|
|
194
|
+
readonly __tsonic_type_System_Threading_RateLimiting_RateLimiterStatistics: never;
|
|
195
|
+
|
|
178
196
|
CurrentAvailablePermits: long;
|
|
179
197
|
CurrentQueuedCount: long;
|
|
180
198
|
TotalFailedLeases: long;
|
|
@@ -190,13 +208,15 @@ export const RateLimiterStatistics: {
|
|
|
190
208
|
export type RateLimiterStatistics = RateLimiterStatistics$instance;
|
|
191
209
|
|
|
192
210
|
export interface RateLimitLease$instance {
|
|
211
|
+
readonly __tsonic_type_System_Threading_RateLimiting_RateLimitLease: never;
|
|
212
|
+
|
|
193
213
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
194
214
|
|
|
195
215
|
readonly IsAcquired: boolean;
|
|
196
|
-
readonly MetadataNames:
|
|
216
|
+
readonly MetadataNames: IEnumerable_1<System_Internal.String>;
|
|
197
217
|
Dispose(): void;
|
|
198
218
|
Dispose(disposing: boolean): void;
|
|
199
|
-
GetAllMetadata():
|
|
219
|
+
GetAllMetadata(): IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>;
|
|
200
220
|
TryGetMetadata(metadataName: string, metadata: unknown): boolean;
|
|
201
221
|
TryGetMetadata<T>(metadataName: MetadataName_1<T>, metadata: T): boolean;
|
|
202
222
|
}
|
|
@@ -209,6 +229,8 @@ export const RateLimitLease: (abstract new() => RateLimitLease) & {
|
|
|
209
229
|
export type RateLimitLease = RateLimitLease$instance;
|
|
210
230
|
|
|
211
231
|
export interface ReplenishingRateLimiter$instance extends RateLimiter {
|
|
232
|
+
readonly __tsonic_type_System_Threading_RateLimiting_ReplenishingRateLimiter: never;
|
|
233
|
+
|
|
212
234
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
213
235
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
214
236
|
|
|
@@ -225,13 +247,15 @@ export const ReplenishingRateLimiter: (abstract new() => ReplenishingRateLimiter
|
|
|
225
247
|
export type ReplenishingRateLimiter = ReplenishingRateLimiter$instance;
|
|
226
248
|
|
|
227
249
|
export interface SlidingWindowRateLimiter$instance extends ReplenishingRateLimiter {
|
|
250
|
+
readonly __tsonic_type_System_Threading_RateLimiting_SlidingWindowRateLimiter: never;
|
|
251
|
+
|
|
228
252
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
229
253
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
230
254
|
|
|
231
|
-
readonly IdleDuration:
|
|
255
|
+
readonly IdleDuration: Nullable_1<TimeSpan>;
|
|
232
256
|
readonly IsAutoReplenishing: boolean;
|
|
233
257
|
readonly ReplenishmentPeriod: TimeSpan;
|
|
234
|
-
AcquireAsyncCore(permitCount: int, cancellationToken?: CancellationToken):
|
|
258
|
+
AcquireAsyncCore(permitCount: int, cancellationToken?: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
235
259
|
AttemptAcquireCore(permitCount: int): RateLimitLease;
|
|
236
260
|
Dispose(disposing: boolean): void;
|
|
237
261
|
Dispose(): void;
|
|
@@ -249,6 +273,8 @@ export const SlidingWindowRateLimiter: {
|
|
|
249
273
|
export type SlidingWindowRateLimiter = SlidingWindowRateLimiter$instance;
|
|
250
274
|
|
|
251
275
|
export interface SlidingWindowRateLimiterOptions$instance {
|
|
276
|
+
readonly __tsonic_type_System_Threading_RateLimiting_SlidingWindowRateLimiterOptions: never;
|
|
277
|
+
|
|
252
278
|
AutoReplenishment: boolean;
|
|
253
279
|
PermitLimit: int;
|
|
254
280
|
QueueLimit: int;
|
|
@@ -266,13 +292,15 @@ export const SlidingWindowRateLimiterOptions: {
|
|
|
266
292
|
export type SlidingWindowRateLimiterOptions = SlidingWindowRateLimiterOptions$instance;
|
|
267
293
|
|
|
268
294
|
export interface TokenBucketRateLimiter$instance extends ReplenishingRateLimiter {
|
|
295
|
+
readonly __tsonic_type_System_Threading_RateLimiting_TokenBucketRateLimiter: never;
|
|
296
|
+
|
|
269
297
|
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
270
298
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
271
299
|
|
|
272
|
-
readonly IdleDuration:
|
|
300
|
+
readonly IdleDuration: Nullable_1<TimeSpan>;
|
|
273
301
|
readonly IsAutoReplenishing: boolean;
|
|
274
302
|
readonly ReplenishmentPeriod: TimeSpan;
|
|
275
|
-
AcquireAsyncCore(tokenCount: int, cancellationToken?: CancellationToken):
|
|
303
|
+
AcquireAsyncCore(tokenCount: int, cancellationToken?: CancellationToken): ValueTask_1<RateLimitLease>;
|
|
276
304
|
AttemptAcquireCore(tokenCount: int): RateLimitLease;
|
|
277
305
|
Dispose(disposing: boolean): void;
|
|
278
306
|
Dispose(): void;
|
|
@@ -290,6 +318,8 @@ export const TokenBucketRateLimiter: {
|
|
|
290
318
|
export type TokenBucketRateLimiter = TokenBucketRateLimiter$instance;
|
|
291
319
|
|
|
292
320
|
export interface TokenBucketRateLimiterOptions$instance {
|
|
321
|
+
readonly __tsonic_type_System_Threading_RateLimiting_TokenBucketRateLimiterOptions: never;
|
|
322
|
+
|
|
293
323
|
AutoReplenishment: boolean;
|
|
294
324
|
QueueLimit: int;
|
|
295
325
|
QueueProcessingOrder: QueueProcessingOrder;
|
|
@@ -316,7 +346,7 @@ export abstract class MetadataName$instance {
|
|
|
316
346
|
export type MetadataName = MetadataName$instance;
|
|
317
347
|
|
|
318
348
|
export abstract class PartitionedRateLimiter$instance {
|
|
319
|
-
static Create<TResource, TPartitionKey>(partitioner:
|
|
349
|
+
static Create<TResource, TPartitionKey>(partitioner: Func_2<TResource, RateLimitPartition_1<TPartitionKey>>, equalityComparer?: IEqualityComparer_1<TPartitionKey>): PartitionedRateLimiter_1<TResource>;
|
|
320
350
|
static CreateChained<TResource>(...limiters: PartitionedRateLimiter_1<TResource>[]): PartitionedRateLimiter_1<TResource>;
|
|
321
351
|
}
|
|
322
352
|
|
|
@@ -324,12 +354,12 @@ export abstract class PartitionedRateLimiter$instance {
|
|
|
324
354
|
export type PartitionedRateLimiter = PartitionedRateLimiter$instance;
|
|
325
355
|
|
|
326
356
|
export abstract class RateLimitPartition$instance {
|
|
327
|
-
static Get<TKey>(partitionKey: TKey, factory:
|
|
328
|
-
static GetConcurrencyLimiter<TKey>(partitionKey: TKey, factory:
|
|
329
|
-
static GetFixedWindowLimiter<TKey>(partitionKey: TKey, factory:
|
|
357
|
+
static Get<TKey>(partitionKey: TKey, factory: Func_2<TKey, RateLimiter>): RateLimitPartition_1<TKey>;
|
|
358
|
+
static GetConcurrencyLimiter<TKey>(partitionKey: TKey, factory: Func_2<TKey, ConcurrencyLimiterOptions>): RateLimitPartition_1<TKey>;
|
|
359
|
+
static GetFixedWindowLimiter<TKey>(partitionKey: TKey, factory: Func_2<TKey, FixedWindowRateLimiterOptions>): RateLimitPartition_1<TKey>;
|
|
330
360
|
static GetNoLimiter<TKey>(partitionKey: TKey): RateLimitPartition_1<TKey>;
|
|
331
|
-
static GetSlidingWindowLimiter<TKey>(partitionKey: TKey, factory:
|
|
332
|
-
static GetTokenBucketLimiter<TKey>(partitionKey: TKey, factory:
|
|
361
|
+
static GetSlidingWindowLimiter<TKey>(partitionKey: TKey, factory: Func_2<TKey, SlidingWindowRateLimiterOptions>): RateLimitPartition_1<TKey>;
|
|
362
|
+
static GetTokenBucketLimiter<TKey>(partitionKey: TKey, factory: Func_2<TKey, TokenBucketRateLimiterOptions>): RateLimitPartition_1<TKey>;
|
|
333
363
|
}
|
|
334
364
|
|
|
335
365
|
|