@tsonic/microsoft-extensions 0.1.1 → 10.0.1
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.Extensions.Caching.Distributed/bindings.json +317 -543
- package/Microsoft.Extensions.Caching.Distributed/internal/index.d.ts +38 -38
- package/Microsoft.Extensions.Caching.Hybrid/bindings.json +146 -327
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +26 -26
- package/Microsoft.Extensions.Caching.Memory/bindings.json +581 -1255
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +88 -88
- package/Microsoft.Extensions.Configuration/bindings.json +1738 -3009
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +195 -195
- package/Microsoft.Extensions.Configuration.CommandLine/bindings.json +108 -199
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/bindings.json +109 -198
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Configuration.Ini/bindings.json +211 -511
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +15 -15
- package/Microsoft.Extensions.Configuration.Json/bindings.json +205 -500
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +14 -14
- package/Microsoft.Extensions.Configuration.KeyPerFile/bindings.json +145 -266
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +16 -16
- package/Microsoft.Extensions.Configuration.Memory/bindings.json +115 -210
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +10 -10
- package/Microsoft.Extensions.Configuration.UserSecrets/bindings.json +26 -50
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Configuration.Xml/bindings.json +225 -539
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +17 -17
- package/Microsoft.Extensions.DependencyInjection/bindings.json +1880 -3222
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +241 -241
- package/Microsoft.Extensions.DependencyInjection.Extensions/bindings.json +268 -477
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +43 -43
- package/Microsoft.Extensions.Diagnostics.HealthChecks/bindings.json +250 -568
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +37 -37
- package/Microsoft.Extensions.Diagnostics.Metrics/bindings.json +270 -494
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +44 -44
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/bindings.json +16 -15
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileProviders/bindings.json +519 -991
- package/Microsoft.Extensions.FileProviders/internal/index.d.ts +46 -46
- package/Microsoft.Extensions.FileProviders.Composite/bindings.json +26 -49
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileProviders.Embedded/bindings.json +89 -171
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +7 -7
- package/Microsoft.Extensions.FileProviders.Internal/bindings.json +26 -58
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileProviders.Physical/bindings.json +296 -634
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +27 -27
- package/Microsoft.Extensions.FileSystemGlobbing/bindings.json +171 -355
- package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +23 -23
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/bindings.json +123 -280
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +15 -15
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/bindings.json +158 -268
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +20 -20
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/bindings.json +191 -384
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +17 -17
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/bindings.json +591 -1070
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +50 -50
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/bindings.json +20 -47
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Hosting/bindings.json +936 -1742
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +120 -120
- package/Microsoft.Extensions.Hosting.Internal/bindings.json +200 -386
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +13 -13
- package/Microsoft.Extensions.Http/bindings.json +93 -160
- package/Microsoft.Extensions.Http/internal/index.d.ts +12 -12
- package/Microsoft.Extensions.Http.Logging/bindings.json +83 -149
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Internal/bindings.json +32 -51
- package/Microsoft.Extensions.Internal/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Localization/bindings.json +294 -531
- package/Microsoft.Extensions.Localization/internal/index.d.ts +21 -21
- package/Microsoft.Extensions.Logging/bindings.json +1141 -2182
- package/Microsoft.Extensions.Logging/internal/index.d.ts +162 -162
- package/Microsoft.Extensions.Logging.Abstractions/bindings.json +285 -526
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +32 -32
- package/Microsoft.Extensions.Logging.Configuration/bindings.json +80 -110
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +5 -5
- package/Microsoft.Extensions.Logging.Console/bindings.json +350 -830
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +48 -48
- package/Microsoft.Extensions.Logging.Debug/bindings.json +29 -48
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Logging.EventLog/bindings.json +69 -147
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +11 -11
- package/Microsoft.Extensions.Logging.EventSource/bindings.json +46 -97
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +6 -6
- package/Microsoft.Extensions.Logging.TraceSource/bindings.json +29 -57
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.ObjectPool/bindings.json +319 -558
- package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +25 -25
- package/Microsoft.Extensions.Options/bindings.json +1780 -3480
- package/Microsoft.Extensions.Options/internal/index.d.ts +206 -206
- package/Microsoft.Extensions.Primitives/bindings.json +635 -1246
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +91 -91
- package/Microsoft.Extensions.Validation/bindings.json +196 -336
- package/Microsoft.Extensions.Validation/internal/index.d.ts +21 -21
- package/Microsoft.Extensions.WebEncoders/bindings.json +14 -25
- package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.WebEncoders.Testing/bindings.json +144 -279
- package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +21 -21
- package/System.Diagnostics/bindings.json +560 -1240
- package/System.Diagnostics/internal/index.d.ts +94 -94
- package/System.Diagnostics.Eventing.Reader/bindings.json +1155 -2972
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +204 -204
- package/System.Net.Http/bindings.json +56 -60
- package/System.Net.Http/internal/index.d.ts +4 -4
- package/System.Security.Cryptography/bindings.json +101 -208
- package/System.Security.Cryptography/internal/index.d.ts +14 -14
- package/System.Security.Cryptography.Pkcs/bindings.json +1662 -4005
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +259 -259
- package/System.Security.Cryptography.Xml/bindings.json +1963 -5427
- package/System.Security.Cryptography.Xml/internal/index.d.ts +338 -338
- package/__build/scripts/generate.sh +4 -4
- package/__internal/extensions/index.d.ts +426 -426
- package/package.json +3 -3
- package/Microsoft.Extensions.Caching.Distributed/internal/metadata.json +0 -835
- package/Microsoft.Extensions.Caching.Hybrid/internal/metadata.json +0 -476
- package/Microsoft.Extensions.Caching.Memory/internal/metadata.json +0 -1740
- package/Microsoft.Extensions.Configuration/internal/metadata.json +0 -4603
- package/Microsoft.Extensions.Configuration.CommandLine/internal/metadata.json +0 -295
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/metadata.json +0 -301
- package/Microsoft.Extensions.Configuration.Ini/internal/metadata.json +0 -568
- package/Microsoft.Extensions.Configuration.Json/internal/metadata.json +0 -552
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/metadata.json +0 -402
- package/Microsoft.Extensions.Configuration.Memory/internal/metadata.json +0 -312
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/metadata.json +0 -85
- package/Microsoft.Extensions.Configuration.Xml/internal/metadata.json +0 -611
- package/Microsoft.Extensions.DependencyInjection/internal/metadata.json +0 -4903
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/metadata.json +0 -713
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/metadata.json +0 -802
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/metadata.json +0 -785
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/metadata.json +0 -41
- package/Microsoft.Extensions.FileProviders/internal/metadata.json +0 -1423
- package/Microsoft.Extensions.FileProviders.Composite/internal/metadata.json +0 -79
- package/Microsoft.Extensions.FileProviders.Embedded/internal/metadata.json +0 -251
- package/Microsoft.Extensions.FileProviders.Internal/internal/metadata.json +0 -84
- package/Microsoft.Extensions.FileProviders.Physical/internal/metadata.json +0 -879
- package/Microsoft.Extensions.FileSystemGlobbing/internal/metadata.json +0 -511
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/metadata.json +0 -352
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/metadata.json +0 -443
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/metadata.json +0 -550
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/metadata.json +0 -1527
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/metadata.json +0 -68
- package/Microsoft.Extensions.Hosting/internal/metadata.json +0 -2577
- package/Microsoft.Extensions.Hosting.Internal/internal/metadata.json +0 -559
- package/Microsoft.Extensions.Http/internal/metadata.json +0 -266
- package/Microsoft.Extensions.Http.Logging/internal/metadata.json +0 -240
- package/Microsoft.Extensions.Internal/internal/metadata.json +0 -94
- package/Microsoft.Extensions.Localization/internal/metadata.json +0 -831
- package/Microsoft.Extensions.Logging/internal/metadata.json +0 -3222
- package/Microsoft.Extensions.Logging.Abstractions/internal/metadata.json +0 -782
- package/Microsoft.Extensions.Logging.Configuration/internal/metadata.json +0 -212
- package/Microsoft.Extensions.Logging.Console/internal/metadata.json +0 -1119
- package/Microsoft.Extensions.Logging.Debug/internal/metadata.json +0 -80
- package/Microsoft.Extensions.Logging.EventLog/internal/metadata.json +0 -206
- package/Microsoft.Extensions.Logging.EventSource/internal/metadata.json +0 -149
- package/Microsoft.Extensions.Logging.TraceSource/internal/metadata.json +0 -85
- package/Microsoft.Extensions.ObjectPool/internal/metadata.json +0 -867
- package/Microsoft.Extensions.Options/internal/metadata.json +0 -4965
- package/Microsoft.Extensions.Primitives/internal/metadata.json +0 -1830
- package/Microsoft.Extensions.Validation/internal/metadata.json +0 -577
- package/Microsoft.Extensions.WebEncoders/internal/metadata.json +0 -46
- package/Microsoft.Extensions.WebEncoders.Testing/internal/metadata.json +0 -431
- package/System.Diagnostics/internal/metadata.json +0 -1694
- package/System.Diagnostics.Eventing.Reader/internal/metadata.json +0 -3706
- package/System.Net.Http/internal/metadata.json +0 -141
- package/System.Security.Cryptography/internal/metadata.json +0 -302
- package/System.Security.Cryptography.Pkcs/internal/metadata.json +0 -5125
- package/System.Security.Cryptography.Xml/internal/metadata.json +0 -5727
|
@@ -31,16 +31,16 @@ import type { CancellationToken } from "@tsonic/dotnet/System.Threading.js";
|
|
|
31
31
|
import type { Task, ValueTask } from "@tsonic/dotnet/System.Threading.Tasks.js";
|
|
32
32
|
|
|
33
33
|
export enum ServiceKeyLookupMode {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
InheritKey = 0,
|
|
35
|
+
NullKey = 1,
|
|
36
|
+
ExplicitKey = 2
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
export enum ServiceLifetime {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
Singleton = 0,
|
|
42
|
+
Scoped = 1,
|
|
43
|
+
Transient = 2
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
@@ -51,23 +51,23 @@ export type ObjectFactory_1<T> = (serviceProvider: IServiceProvider, arguments:
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
export interface IHealthChecksBuilder$instance {
|
|
54
|
-
readonly
|
|
55
|
-
|
|
54
|
+
readonly Services: IServiceCollection;
|
|
55
|
+
Add(registration: HealthCheckRegistration): IHealthChecksBuilder;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
export type IHealthChecksBuilder = IHealthChecksBuilder$instance;
|
|
60
60
|
|
|
61
61
|
export interface IHttpClientBuilder$instance {
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
62
|
+
readonly Name: string;
|
|
63
|
+
readonly Services: IServiceCollection;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
export type IHttpClientBuilder = IHttpClientBuilder$instance;
|
|
68
68
|
|
|
69
69
|
export interface IKeyedServiceProvider$instance extends IServiceProvider {
|
|
70
|
-
|
|
70
|
+
GetKeyedService(serviceType: Type, serviceKey: unknown): unknown | undefined;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
|
|
@@ -80,16 +80,16 @@ export interface IServiceCollection$instance extends IList<ServiceDescriptor>, I
|
|
|
80
80
|
export type IServiceCollection = IServiceCollection$instance;
|
|
81
81
|
|
|
82
82
|
export interface IServiceProviderFactory_1$instance<TContainerBuilder> {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
CreateBuilder(services: IServiceCollection): TContainerBuilder;
|
|
84
|
+
CreateServiceProvider(containerBuilder: TContainerBuilder): IServiceProvider;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
export type IServiceProviderFactory_1<TContainerBuilder> = IServiceProviderFactory_1$instance<TContainerBuilder>;
|
|
89
89
|
|
|
90
90
|
export interface IServiceProviderIsKeyedService$instance extends IServiceProviderIsService {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
IsKeyedService(serviceType: Type, serviceKey: unknown): boolean;
|
|
92
|
+
IsService(serviceType: Type): boolean;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
|
|
@@ -98,45 +98,45 @@ export interface IServiceProviderIsKeyedService$instance extends IServiceProvide
|
|
|
98
98
|
export type IServiceProviderIsKeyedService = IServiceProviderIsKeyedService$instance;
|
|
99
99
|
|
|
100
100
|
export interface IServiceProviderIsService$instance {
|
|
101
|
-
|
|
101
|
+
IsService(serviceType: Type): boolean;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
export type IServiceProviderIsService = IServiceProviderIsService$instance;
|
|
106
106
|
|
|
107
107
|
export interface IServiceScope$instance extends IDisposable {
|
|
108
|
-
readonly
|
|
108
|
+
readonly ServiceProvider: IServiceProvider;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
export type IServiceScope = IServiceScope$instance;
|
|
113
113
|
|
|
114
114
|
export interface IServiceScopeFactory$instance {
|
|
115
|
-
|
|
115
|
+
CreateScope(): IServiceScope;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
export type IServiceScopeFactory = IServiceScopeFactory$instance;
|
|
120
120
|
|
|
121
121
|
export interface ISocketsHttpHandlerBuilder$instance {
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
122
|
+
readonly Name: string;
|
|
123
|
+
readonly Services: IServiceCollection;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
export type ISocketsHttpHandlerBuilder = ISocketsHttpHandlerBuilder$instance;
|
|
128
128
|
|
|
129
129
|
export interface ISupportRequiredService$instance {
|
|
130
|
-
|
|
130
|
+
GetRequiredService(serviceType: Type): unknown;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
export type ISupportRequiredService = ISupportRequiredService$instance;
|
|
135
135
|
|
|
136
136
|
export interface AsyncServiceScope$instance {
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
readonly ServiceProvider: IServiceProvider;
|
|
138
|
+
Dispose(): void;
|
|
139
|
+
DisposeAsync(): ValueTask;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
|
|
@@ -166,8 +166,8 @@ export const ActivatorUtilitiesConstructorAttribute: {
|
|
|
166
166
|
export type ActivatorUtilitiesConstructorAttribute = ActivatorUtilitiesConstructorAttribute$instance;
|
|
167
167
|
|
|
168
168
|
export interface DefaultServiceProviderFactory$instance {
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
CreateBuilder(services: IServiceCollection): IServiceCollection;
|
|
170
|
+
CreateServiceProvider(containerBuilder: IServiceCollection): IServiceProvider;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
|
|
@@ -187,8 +187,8 @@ export type DefaultServiceProviderFactory = DefaultServiceProviderFactory$instan
|
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
export interface FromKeyedServicesAttribute$instance extends Attribute {
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
190
|
+
readonly Key: unknown | undefined;
|
|
191
|
+
readonly LookupMode: ServiceKeyLookupMode;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
|
|
@@ -201,18 +201,18 @@ export const FromKeyedServicesAttribute: {
|
|
|
201
201
|
export type FromKeyedServicesAttribute = FromKeyedServicesAttribute$instance;
|
|
202
202
|
|
|
203
203
|
export interface ServiceCollection$instance extends IServiceCollection {
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
204
|
+
readonly Count: int;
|
|
205
|
+
readonly IsReadOnly: boolean;
|
|
206
|
+
Item: ServiceDescriptor;
|
|
207
|
+
Clear(): void;
|
|
208
|
+
Contains(item: ServiceDescriptor): boolean;
|
|
209
|
+
CopyTo(array: ServiceDescriptor[], arrayIndex: int): void;
|
|
210
|
+
GetEnumerator(): IEnumerator<ServiceDescriptor>;
|
|
211
|
+
IndexOf(item: ServiceDescriptor): int;
|
|
212
|
+
Insert(index: int, item: ServiceDescriptor): void;
|
|
213
|
+
MakeReadOnly(): void;
|
|
214
|
+
Remove(item: ServiceDescriptor): boolean;
|
|
215
|
+
RemoveAt(index: int): void;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
|
|
@@ -224,17 +224,17 @@ export const ServiceCollection: {
|
|
|
224
224
|
export type ServiceCollection = ServiceCollection$instance;
|
|
225
225
|
|
|
226
226
|
export interface ServiceDescriptor$instance {
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
234
|
-
readonly
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
237
|
-
|
|
227
|
+
readonly ImplementationFactory: Func<IServiceProvider, unknown> | undefined;
|
|
228
|
+
readonly ImplementationInstance: unknown | undefined;
|
|
229
|
+
readonly ImplementationType: Type | undefined;
|
|
230
|
+
readonly IsKeyedService: boolean;
|
|
231
|
+
readonly KeyedImplementationFactory: Func<IServiceProvider, unknown | undefined, unknown> | undefined;
|
|
232
|
+
readonly KeyedImplementationInstance: unknown | undefined;
|
|
233
|
+
readonly KeyedImplementationType: Type | undefined;
|
|
234
|
+
readonly Lifetime: ServiceLifetime;
|
|
235
|
+
readonly ServiceKey: unknown | undefined;
|
|
236
|
+
readonly ServiceType: Type;
|
|
237
|
+
ToString(): string;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
|
|
@@ -245,38 +245,38 @@ export const ServiceDescriptor: {
|
|
|
245
245
|
new(serviceType: Type, serviceKey: unknown, instance: unknown): ServiceDescriptor;
|
|
246
246
|
new(serviceType: Type, factory: Func<IServiceProvider, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
247
247
|
new(serviceType: Type, serviceKey: unknown, factory: Func<IServiceProvider, unknown, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
248
|
+
Describe(serviceType: Type, implementationFactory: Func<IServiceProvider, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
249
|
+
Describe(serviceType: Type, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
250
|
+
DescribeKeyed(serviceType: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
251
|
+
DescribeKeyed(serviceType: Type, serviceKey: unknown, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
252
|
+
KeyedScoped<TService, TImplementation extends TService>(serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, TImplementation>): ServiceDescriptor;
|
|
253
|
+
KeyedScoped<TService, TImplementation extends TService>(serviceKey: unknown): ServiceDescriptor;
|
|
254
|
+
KeyedScoped(service: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>): ServiceDescriptor;
|
|
255
|
+
KeyedScoped(service: Type, serviceKey: unknown, implementationType: Type): ServiceDescriptor;
|
|
256
|
+
KeyedSingleton<TService, TImplementation extends TService>(serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, TImplementation>): ServiceDescriptor;
|
|
257
|
+
KeyedSingleton<TService>(serviceKey: unknown, implementationInstance: TService): ServiceDescriptor;
|
|
258
|
+
KeyedSingleton<TService, TImplementation extends TService>(serviceKey: unknown): ServiceDescriptor;
|
|
259
|
+
KeyedSingleton(serviceType: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>): ServiceDescriptor;
|
|
260
|
+
KeyedSingleton(serviceType: Type, serviceKey: unknown, implementationInstance: unknown): ServiceDescriptor;
|
|
261
|
+
KeyedSingleton(service: Type, serviceKey: unknown, implementationType: Type): ServiceDescriptor;
|
|
262
|
+
KeyedTransient<TService, TImplementation extends TService>(serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, TImplementation>): ServiceDescriptor;
|
|
263
|
+
KeyedTransient<TService, TImplementation extends TService>(serviceKey: unknown): ServiceDescriptor;
|
|
264
|
+
KeyedTransient(service: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>): ServiceDescriptor;
|
|
265
|
+
KeyedTransient(service: Type, serviceKey: unknown, implementationType: Type): ServiceDescriptor;
|
|
266
|
+
Scoped<TService, TImplementation extends TService>(): ServiceDescriptor;
|
|
267
|
+
Scoped<TService, TImplementation extends TService>(implementationFactory: Func<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
268
|
+
Scoped(service: Type, implementationFactory: Func<IServiceProvider, unknown>): ServiceDescriptor;
|
|
269
|
+
Scoped(service: Type, implementationType: Type): ServiceDescriptor;
|
|
270
|
+
Singleton<TService, TImplementation extends TService>(): ServiceDescriptor;
|
|
271
|
+
Singleton<TService, TImplementation extends TService>(implementationFactory: Func<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
272
|
+
Singleton(serviceType: Type, implementationFactory: Func<IServiceProvider, unknown>): ServiceDescriptor;
|
|
273
|
+
Singleton(serviceType: Type, implementationInstance: unknown): ServiceDescriptor;
|
|
274
|
+
Singleton(service: Type, implementationType: Type): ServiceDescriptor;
|
|
275
|
+
Singleton<TService>(implementationInstance: TService): ServiceDescriptor;
|
|
276
|
+
Transient<TService, TImplementation extends TService>(): ServiceDescriptor;
|
|
277
|
+
Transient<TService, TImplementation extends TService>(implementationFactory: Func<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
278
|
+
Transient(service: Type, implementationFactory: Func<IServiceProvider, unknown>): ServiceDescriptor;
|
|
279
|
+
Transient(service: Type, implementationType: Type): ServiceDescriptor;
|
|
280
280
|
};
|
|
281
281
|
|
|
282
282
|
|
|
@@ -294,11 +294,11 @@ export const ServiceKeyAttribute: {
|
|
|
294
294
|
export type ServiceKeyAttribute = ServiceKeyAttribute$instance;
|
|
295
295
|
|
|
296
296
|
export interface ServiceProvider$instance {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
Dispose(): void;
|
|
298
|
+
DisposeAsync(): ValueTask;
|
|
299
|
+
GetKeyedService(serviceType: Type, serviceKey: unknown): unknown | undefined;
|
|
300
|
+
GetRequiredKeyedService(serviceType: Type, serviceKey: unknown): unknown;
|
|
301
|
+
GetService(serviceType: Type): unknown | undefined;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
|
|
@@ -317,8 +317,8 @@ export type ServiceProvider = ServiceProvider$instance & __ServiceProvider$views
|
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
export interface ServiceProviderOptions$instance {
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
ValidateOnBuild: boolean;
|
|
321
|
+
ValidateScopes: boolean;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
|
|
@@ -330,295 +330,295 @@ export const ServiceProviderOptions: {
|
|
|
330
330
|
export type ServiceProviderOptions = ServiceProviderOptions$instance;
|
|
331
331
|
|
|
332
332
|
export abstract class ActivatorUtilities$instance {
|
|
333
|
-
static
|
|
334
|
-
static
|
|
335
|
-
static
|
|
336
|
-
static
|
|
337
|
-
static
|
|
338
|
-
static
|
|
333
|
+
static CreateFactory(instanceType: Type, argumentTypes: Type[]): ObjectFactory;
|
|
334
|
+
static CreateFactory<T>(argumentTypes: Type[]): ObjectFactory_1<T>;
|
|
335
|
+
static CreateInstance<T>(provider: IServiceProvider, ...parameters: unknown[]): T;
|
|
336
|
+
static CreateInstance(provider: IServiceProvider, instanceType: Type, ...parameters: unknown[]): unknown;
|
|
337
|
+
static GetServiceOrCreateInstance(provider: IServiceProvider, type: Type): unknown;
|
|
338
|
+
static GetServiceOrCreateInstance<T>(provider: IServiceProvider): T;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
|
|
342
342
|
export type ActivatorUtilities = ActivatorUtilities$instance;
|
|
343
343
|
|
|
344
344
|
export abstract class EncoderServiceCollectionExtensions$instance {
|
|
345
|
-
static
|
|
346
|
-
static
|
|
345
|
+
static AddWebEncoders(services: IServiceCollection, setupAction: Action<WebEncoderOptions>): IServiceCollection;
|
|
346
|
+
static AddWebEncoders(services: IServiceCollection): IServiceCollection;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
|
|
350
350
|
export type EncoderServiceCollectionExtensions = EncoderServiceCollectionExtensions$instance;
|
|
351
351
|
|
|
352
352
|
export abstract class HealthChecksBuilderAddCheckExtensions$instance {
|
|
353
|
-
static
|
|
354
|
-
static
|
|
355
|
-
static
|
|
356
|
-
static
|
|
357
|
-
static
|
|
358
|
-
static
|
|
359
|
-
static
|
|
360
|
-
static
|
|
353
|
+
static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus?: Nullable<HealthStatus>, tags?: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout?: Nullable<TimeSpan>): IHealthChecksBuilder;
|
|
354
|
+
static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus: Nullable<HealthStatus>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>): IHealthChecksBuilder;
|
|
355
|
+
static AddCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus?: Nullable<HealthStatus>, tags?: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout?: Nullable<TimeSpan>): IHealthChecksBuilder;
|
|
356
|
+
static AddCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable<HealthStatus>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>): IHealthChecksBuilder;
|
|
357
|
+
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable<HealthStatus>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>, ...args: unknown[]): IHealthChecksBuilder;
|
|
358
|
+
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable<HealthStatus>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout: TimeSpan, ...args: unknown[]): IHealthChecksBuilder;
|
|
359
|
+
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable<HealthStatus>, ...args: unknown[]): IHealthChecksBuilder;
|
|
360
|
+
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, ...args: unknown[]): IHealthChecksBuilder;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
|
|
364
364
|
export type HealthChecksBuilderAddCheckExtensions = HealthChecksBuilderAddCheckExtensions$instance;
|
|
365
365
|
|
|
366
366
|
export abstract class HealthChecksBuilderDelegateExtensions$instance {
|
|
367
|
-
static
|
|
368
|
-
static
|
|
369
|
-
static
|
|
370
|
-
static
|
|
371
|
-
static
|
|
372
|
-
static
|
|
373
|
-
static
|
|
374
|
-
static
|
|
367
|
+
static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func<Task<HealthCheckResult>>, tags?: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout?: Nullable<TimeSpan>): IHealthChecksBuilder;
|
|
368
|
+
static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func<Task<HealthCheckResult>>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>): IHealthChecksBuilder;
|
|
369
|
+
static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func<CancellationToken, Task<HealthCheckResult>>, tags?: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout?: Nullable<TimeSpan>): IHealthChecksBuilder;
|
|
370
|
+
static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func<CancellationToken, Task<HealthCheckResult>>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>): IHealthChecksBuilder;
|
|
371
|
+
static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func<HealthCheckResult>, tags?: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout?: Nullable<TimeSpan>): IHealthChecksBuilder;
|
|
372
|
+
static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func<HealthCheckResult>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>): IHealthChecksBuilder;
|
|
373
|
+
static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func<CancellationToken, HealthCheckResult>, tags?: IEnumerable__System_Collections_Generic<System_Internal.String>, timeout?: Nullable<TimeSpan>): IHealthChecksBuilder;
|
|
374
|
+
static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func<CancellationToken, HealthCheckResult>, tags: IEnumerable__System_Collections_Generic<System_Internal.String>): IHealthChecksBuilder;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
|
|
378
378
|
export type HealthChecksBuilderDelegateExtensions = HealthChecksBuilderDelegateExtensions$instance;
|
|
379
379
|
|
|
380
380
|
export abstract class HealthCheckServiceCollectionExtensions$instance {
|
|
381
|
-
static
|
|
381
|
+
static AddHealthChecks(services: IServiceCollection): IHealthChecksBuilder;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
export type HealthCheckServiceCollectionExtensions = HealthCheckServiceCollectionExtensions$instance;
|
|
386
386
|
|
|
387
387
|
export abstract class HttpClientBuilderExtensions$instance {
|
|
388
|
-
static
|
|
389
|
-
static
|
|
390
|
-
static
|
|
391
|
-
static
|
|
392
|
-
static
|
|
393
|
-
static
|
|
394
|
-
static
|
|
395
|
-
static
|
|
396
|
-
static
|
|
397
|
-
static
|
|
398
|
-
static
|
|
399
|
-
static
|
|
400
|
-
static
|
|
401
|
-
static
|
|
402
|
-
static
|
|
403
|
-
static
|
|
404
|
-
static
|
|
405
|
-
static
|
|
406
|
-
static
|
|
407
|
-
static
|
|
408
|
-
static
|
|
409
|
-
static
|
|
410
|
-
static
|
|
411
|
-
static
|
|
412
|
-
static
|
|
388
|
+
static AddAsKeyed(builder: IHttpClientBuilder, lifetime?: ServiceLifetime): IHttpClientBuilder;
|
|
389
|
+
static AddDefaultLogger(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
390
|
+
static AddHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func<DelegatingHandler>): IHttpClientBuilder;
|
|
391
|
+
static AddHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func<IServiceProvider, DelegatingHandler>): IHttpClientBuilder;
|
|
392
|
+
static AddHttpMessageHandler<THandler extends DelegatingHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
393
|
+
static AddLogger<TLogger extends IHttpClientLogger>(builder: IHttpClientBuilder, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
|
|
394
|
+
static AddLogger(builder: IHttpClientBuilder, httpClientLoggerFactory: Func<IServiceProvider, IHttpClientLogger>, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
|
|
395
|
+
static AddTypedClient<TClient>(builder: IHttpClientBuilder, factory: Func<HttpClient, TClient>): IHttpClientBuilder;
|
|
396
|
+
static AddTypedClient<TClient>(builder: IHttpClientBuilder, factory: Func<HttpClient, IServiceProvider, TClient>): IHttpClientBuilder;
|
|
397
|
+
static AddTypedClient<TClient>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
398
|
+
static ConfigureAdditionalHttpMessageHandlers(builder: IHttpClientBuilder, configureAdditionalHandlers: Action<IList<DelegatingHandler>, IServiceProvider>): IHttpClientBuilder;
|
|
399
|
+
static ConfigureHttpClient(builder: IHttpClientBuilder, configureClient: Action<HttpClient>): IHttpClientBuilder;
|
|
400
|
+
static ConfigureHttpClient(builder: IHttpClientBuilder, configureClient: Action<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
401
|
+
static ConfigureHttpMessageHandlerBuilder(builder: IHttpClientBuilder, configureBuilder: Action<HttpMessageHandlerBuilder>): IHttpClientBuilder;
|
|
402
|
+
static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Action<HttpMessageHandler, IServiceProvider>): IHttpClientBuilder;
|
|
403
|
+
static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func<HttpMessageHandler>): IHttpClientBuilder;
|
|
404
|
+
static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func<IServiceProvider, HttpMessageHandler>): IHttpClientBuilder;
|
|
405
|
+
static ConfigurePrimaryHttpMessageHandler<THandler extends HttpMessageHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
406
|
+
static RedactLoggedHeaders(builder: IHttpClientBuilder, redactedLoggedHeaderNames: IEnumerable__System_Collections_Generic<System_Internal.String>): IHttpClientBuilder;
|
|
407
|
+
static RedactLoggedHeaders(builder: IHttpClientBuilder, shouldRedactHeaderValue: Func<System_Internal.String, System_Internal.Boolean>): IHttpClientBuilder;
|
|
408
|
+
static RemoveAllLoggers(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
409
|
+
static RemoveAsKeyed(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
410
|
+
static SetHandlerLifetime(builder: IHttpClientBuilder, handlerLifetime: TimeSpan): IHttpClientBuilder;
|
|
411
|
+
static UseSocketsHttpHandler(builder: IHttpClientBuilder, configureBuilder: Action<ISocketsHttpHandlerBuilder>): IHttpClientBuilder;
|
|
412
|
+
static UseSocketsHttpHandler(builder: IHttpClientBuilder, configureHandler?: Action<SocketsHttpHandler, IServiceProvider>): IHttpClientBuilder;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
|
|
416
416
|
export type HttpClientBuilderExtensions = HttpClientBuilderExtensions$instance;
|
|
417
417
|
|
|
418
418
|
export abstract class HttpClientFactoryServiceCollectionExtensions$instance {
|
|
419
|
-
static
|
|
420
|
-
static
|
|
421
|
-
static
|
|
422
|
-
static
|
|
423
|
-
static
|
|
424
|
-
static
|
|
425
|
-
static
|
|
426
|
-
static
|
|
427
|
-
static
|
|
428
|
-
static
|
|
429
|
-
static
|
|
430
|
-
static
|
|
419
|
+
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, factory: Func<HttpClient, TImplementation>): IHttpClientBuilder;
|
|
420
|
+
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, factory: Func<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
|
|
421
|
+
static AddHttpClient<TClient>(services: IServiceCollection, configureClient: Action<HttpClient>): IHttpClientBuilder;
|
|
422
|
+
static AddHttpClient<TClient>(services: IServiceCollection, configureClient: Action<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
423
|
+
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, name: string, factory: Func<HttpClient, TImplementation>): IHttpClientBuilder;
|
|
424
|
+
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, name: string, factory: Func<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
|
|
425
|
+
static AddHttpClient(services: IServiceCollection, name: string, configureClient: Action<HttpClient>): IHttpClientBuilder;
|
|
426
|
+
static AddHttpClient(services: IServiceCollection, name: string, configureClient: Action<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
427
|
+
static AddHttpClient(services: IServiceCollection, name: string): IHttpClientBuilder;
|
|
428
|
+
static AddHttpClient<TClient>(services: IServiceCollection): IHttpClientBuilder;
|
|
429
|
+
static AddHttpClient(services: IServiceCollection): IServiceCollection;
|
|
430
|
+
static ConfigureHttpClientDefaults(services: IServiceCollection, configure: Action<IHttpClientBuilder>): IServiceCollection;
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
|
|
434
434
|
export type HttpClientFactoryServiceCollectionExtensions = HttpClientFactoryServiceCollectionExtensions$instance;
|
|
435
435
|
|
|
436
436
|
export abstract class KeyedService$instance {
|
|
437
|
-
static readonly
|
|
437
|
+
static readonly AnyKey: unknown;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
|
|
441
441
|
export type KeyedService = KeyedService$instance;
|
|
442
442
|
|
|
443
443
|
export abstract class LocalizationServiceCollectionExtensions$instance {
|
|
444
|
-
static
|
|
445
|
-
static
|
|
444
|
+
static AddLocalization(services: IServiceCollection, setupAction: Action<LocalizationOptions>): IServiceCollection;
|
|
445
|
+
static AddLocalization(services: IServiceCollection): IServiceCollection;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
|
|
449
449
|
export type LocalizationServiceCollectionExtensions = LocalizationServiceCollectionExtensions$instance;
|
|
450
450
|
|
|
451
451
|
export abstract class LoggingServiceCollectionExtensions$instance {
|
|
452
|
-
static
|
|
453
|
-
static
|
|
452
|
+
static AddLogging(services: IServiceCollection, configure: Action<ILoggingBuilder>): IServiceCollection;
|
|
453
|
+
static AddLogging(services: IServiceCollection): IServiceCollection;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
export type LoggingServiceCollectionExtensions = LoggingServiceCollectionExtensions$instance;
|
|
458
458
|
|
|
459
459
|
export abstract class MemoryCacheServiceCollectionExtensions$instance {
|
|
460
|
-
static
|
|
461
|
-
static
|
|
462
|
-
static
|
|
463
|
-
static
|
|
460
|
+
static AddDistributedMemoryCache(services: IServiceCollection, setupAction: Action<MemoryDistributedCacheOptions>): IServiceCollection;
|
|
461
|
+
static AddDistributedMemoryCache(services: IServiceCollection): IServiceCollection;
|
|
462
|
+
static AddMemoryCache(services: IServiceCollection, setupAction: Action<MemoryCacheOptions>): IServiceCollection;
|
|
463
|
+
static AddMemoryCache(services: IServiceCollection): IServiceCollection;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
|
|
467
467
|
export type MemoryCacheServiceCollectionExtensions = MemoryCacheServiceCollectionExtensions$instance;
|
|
468
468
|
|
|
469
469
|
export abstract class MetricsServiceExtensions$instance {
|
|
470
|
-
static
|
|
471
|
-
static
|
|
470
|
+
static AddMetrics(services: IServiceCollection, configure: Action<IMetricsBuilder>): IServiceCollection;
|
|
471
|
+
static AddMetrics(services: IServiceCollection): IServiceCollection;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
|
|
475
475
|
export type MetricsServiceExtensions = MetricsServiceExtensions$instance;
|
|
476
476
|
|
|
477
477
|
export abstract class OptionsBuilderConfigurationExtensions$instance {
|
|
478
|
-
static
|
|
479
|
-
static
|
|
480
|
-
static
|
|
478
|
+
static Bind<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration, configureBinder: Action<BinderOptions>): OptionsBuilder_1<TOptions>;
|
|
479
|
+
static Bind<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration): OptionsBuilder_1<TOptions>;
|
|
480
|
+
static BindConfiguration<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, configSectionPath: string, configureBinder?: Action<BinderOptions>): OptionsBuilder_1<TOptions>;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
|
|
484
484
|
export type OptionsBuilderConfigurationExtensions = OptionsBuilderConfigurationExtensions$instance;
|
|
485
485
|
|
|
486
486
|
export abstract class OptionsBuilderDataAnnotationsExtensions$instance {
|
|
487
|
-
static
|
|
487
|
+
static ValidateDataAnnotations<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
|
|
491
491
|
export type OptionsBuilderDataAnnotationsExtensions = OptionsBuilderDataAnnotationsExtensions$instance;
|
|
492
492
|
|
|
493
493
|
export abstract class OptionsBuilderExtensions$instance {
|
|
494
|
-
static
|
|
494
|
+
static ValidateOnStart<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
|
|
498
498
|
export type OptionsBuilderExtensions = OptionsBuilderExtensions$instance;
|
|
499
499
|
|
|
500
500
|
export abstract class OptionsConfigurationServiceCollectionExtensions$instance {
|
|
501
|
-
static
|
|
502
|
-
static
|
|
503
|
-
static
|
|
504
|
-
static
|
|
501
|
+
static Configure<TOptions>(services: IServiceCollection, config: IConfiguration, configureBinder: Action<BinderOptions>): IServiceCollection;
|
|
502
|
+
static Configure<TOptions>(services: IServiceCollection, config: IConfiguration): IServiceCollection;
|
|
503
|
+
static Configure<TOptions>(services: IServiceCollection, name: string, config: IConfiguration, configureBinder: Action<BinderOptions>): IServiceCollection;
|
|
504
|
+
static Configure<TOptions>(services: IServiceCollection, name: string, config: IConfiguration): IServiceCollection;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
|
|
508
508
|
export type OptionsConfigurationServiceCollectionExtensions = OptionsConfigurationServiceCollectionExtensions$instance;
|
|
509
509
|
|
|
510
510
|
export abstract class OptionsServiceCollectionExtensions$instance {
|
|
511
|
-
static
|
|
512
|
-
static
|
|
513
|
-
static
|
|
514
|
-
static
|
|
515
|
-
static
|
|
516
|
-
static
|
|
517
|
-
static
|
|
518
|
-
static
|
|
519
|
-
static
|
|
520
|
-
static
|
|
521
|
-
static
|
|
522
|
-
static
|
|
523
|
-
static
|
|
511
|
+
static AddOptions<TOptions>(services: IServiceCollection, name: string): OptionsBuilder_1<TOptions>;
|
|
512
|
+
static AddOptions(services: IServiceCollection): IServiceCollection;
|
|
513
|
+
static AddOptions<TOptions>(services: IServiceCollection): OptionsBuilder_1<TOptions>;
|
|
514
|
+
static AddOptionsWithValidateOnStart<TOptions>(services: IServiceCollection, name?: string): OptionsBuilder_1<TOptions>;
|
|
515
|
+
static Configure<TOptions>(services: IServiceCollection, configureOptions: Action<TOptions>): IServiceCollection;
|
|
516
|
+
static Configure<TOptions>(services: IServiceCollection, name: string, configureOptions: Action<TOptions>): IServiceCollection;
|
|
517
|
+
static ConfigureAll<TOptions>(services: IServiceCollection, configureOptions: Action<TOptions>): IServiceCollection;
|
|
518
|
+
static ConfigureOptions(services: IServiceCollection, configureInstance: unknown): IServiceCollection;
|
|
519
|
+
static ConfigureOptions(services: IServiceCollection, configureType: Type): IServiceCollection;
|
|
520
|
+
static ConfigureOptions<TConfigureOptions>(services: IServiceCollection): IServiceCollection;
|
|
521
|
+
static PostConfigure<TOptions>(services: IServiceCollection, configureOptions: Action<TOptions>): IServiceCollection;
|
|
522
|
+
static PostConfigure<TOptions>(services: IServiceCollection, name: string, configureOptions: Action<TOptions>): IServiceCollection;
|
|
523
|
+
static PostConfigureAll<TOptions>(services: IServiceCollection, configureOptions: Action<TOptions>): IServiceCollection;
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
|
|
527
527
|
export type OptionsServiceCollectionExtensions = OptionsServiceCollectionExtensions$instance;
|
|
528
528
|
|
|
529
529
|
export abstract class ServiceCollectionContainerBuilderExtensions$instance {
|
|
530
|
-
static
|
|
531
|
-
static
|
|
532
|
-
static
|
|
530
|
+
static BuildServiceProvider(services: IServiceCollection, options: ServiceProviderOptions): ServiceProvider;
|
|
531
|
+
static BuildServiceProvider(services: IServiceCollection, validateScopes: boolean): ServiceProvider;
|
|
532
|
+
static BuildServiceProvider(services: IServiceCollection): ServiceProvider;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
|
|
536
536
|
export type ServiceCollectionContainerBuilderExtensions = ServiceCollectionContainerBuilderExtensions$instance;
|
|
537
537
|
|
|
538
538
|
export abstract class ServiceCollectionHostedServiceExtensions$instance {
|
|
539
|
-
static
|
|
540
|
-
static
|
|
539
|
+
static AddHostedService<THostedService extends IHostedService>(services: IServiceCollection, implementationFactory: Func<IServiceProvider, THostedService>): IServiceCollection;
|
|
540
|
+
static AddHostedService<THostedService extends IHostedService>(services: IServiceCollection): IServiceCollection;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
|
|
544
544
|
export type ServiceCollectionHostedServiceExtensions = ServiceCollectionHostedServiceExtensions$instance;
|
|
545
545
|
|
|
546
546
|
export abstract class ServiceCollectionServiceExtensions$instance {
|
|
547
|
-
static
|
|
548
|
-
static
|
|
549
|
-
static
|
|
550
|
-
static
|
|
551
|
-
static
|
|
552
|
-
static
|
|
553
|
-
static
|
|
554
|
-
static
|
|
555
|
-
static
|
|
556
|
-
static
|
|
557
|
-
static
|
|
558
|
-
static
|
|
559
|
-
static
|
|
560
|
-
static
|
|
561
|
-
static
|
|
562
|
-
static
|
|
563
|
-
static
|
|
564
|
-
static
|
|
565
|
-
static
|
|
566
|
-
static
|
|
567
|
-
static
|
|
568
|
-
static
|
|
569
|
-
static
|
|
570
|
-
static
|
|
571
|
-
static
|
|
572
|
-
static
|
|
573
|
-
static
|
|
574
|
-
static
|
|
575
|
-
static
|
|
576
|
-
static
|
|
577
|
-
static
|
|
578
|
-
static
|
|
579
|
-
static
|
|
580
|
-
static
|
|
547
|
+
static AddKeyedScoped<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, TService>): IServiceCollection;
|
|
548
|
+
static AddKeyedScoped<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey: unknown): IServiceCollection;
|
|
549
|
+
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>): IServiceCollection;
|
|
550
|
+
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationType: Type): IServiceCollection;
|
|
551
|
+
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
|
|
552
|
+
static AddKeyedSingleton<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, TService>): IServiceCollection;
|
|
553
|
+
static AddKeyedSingleton<TService>(services: IServiceCollection, serviceKey: unknown, implementationInstance: TService): IServiceCollection;
|
|
554
|
+
static AddKeyedSingleton<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey: unknown): IServiceCollection;
|
|
555
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>): IServiceCollection;
|
|
556
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationInstance: unknown): IServiceCollection;
|
|
557
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationType: Type): IServiceCollection;
|
|
558
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
|
|
559
|
+
static AddKeyedTransient<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, TService>): IServiceCollection;
|
|
560
|
+
static AddKeyedTransient<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey: unknown): IServiceCollection;
|
|
561
|
+
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationFactory: Func<IServiceProvider, unknown, unknown>): IServiceCollection;
|
|
562
|
+
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationType: Type): IServiceCollection;
|
|
563
|
+
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
|
|
564
|
+
static AddScoped<TService>(services: IServiceCollection, implementationFactory: Func<IServiceProvider, TService>): IServiceCollection;
|
|
565
|
+
static AddScoped(services: IServiceCollection, serviceType: Type, implementationFactory: Func<IServiceProvider, unknown>): IServiceCollection;
|
|
566
|
+
static AddScoped(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
|
|
567
|
+
static AddScoped(services: IServiceCollection, serviceType: Type): IServiceCollection;
|
|
568
|
+
static AddScoped<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
|
|
569
|
+
static AddSingleton<TService>(services: IServiceCollection, implementationFactory: Func<IServiceProvider, TService>): IServiceCollection;
|
|
570
|
+
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationFactory: Func<IServiceProvider, unknown>): IServiceCollection;
|
|
571
|
+
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationInstance: unknown): IServiceCollection;
|
|
572
|
+
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
|
|
573
|
+
static AddSingleton(services: IServiceCollection, serviceType: Type): IServiceCollection;
|
|
574
|
+
static AddSingleton<TService>(services: IServiceCollection, implementationInstance: TService): IServiceCollection;
|
|
575
|
+
static AddSingleton<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
|
|
576
|
+
static AddTransient<TService>(services: IServiceCollection, implementationFactory: Func<IServiceProvider, TService>): IServiceCollection;
|
|
577
|
+
static AddTransient(services: IServiceCollection, serviceType: Type, implementationFactory: Func<IServiceProvider, unknown>): IServiceCollection;
|
|
578
|
+
static AddTransient(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
|
|
579
|
+
static AddTransient(services: IServiceCollection, serviceType: Type): IServiceCollection;
|
|
580
|
+
static AddTransient<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
|
|
584
584
|
export type ServiceCollectionServiceExtensions = ServiceCollectionServiceExtensions$instance;
|
|
585
585
|
|
|
586
586
|
export abstract class ServiceProviderKeyedServiceExtensions$instance {
|
|
587
|
-
static
|
|
588
|
-
static
|
|
589
|
-
static
|
|
590
|
-
static
|
|
591
|
-
static
|
|
592
|
-
static
|
|
587
|
+
static GetKeyedService<T>(provider: IServiceProvider, serviceKey: unknown): T | undefined;
|
|
588
|
+
static GetKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown): unknown | undefined;
|
|
589
|
+
static GetKeyedServices<T>(provider: IServiceProvider, serviceKey: unknown): IEnumerable__System_Collections_Generic<T>;
|
|
590
|
+
static GetKeyedServices(provider: IServiceProvider, serviceType: Type, serviceKey: unknown): IEnumerable__System_Collections_Generic<unknown | undefined>;
|
|
591
|
+
static GetRequiredKeyedService<T>(provider: IServiceProvider, serviceKey: unknown): T;
|
|
592
|
+
static GetRequiredKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown): unknown;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
|
|
596
596
|
export type ServiceProviderKeyedServiceExtensions = ServiceProviderKeyedServiceExtensions$instance;
|
|
597
597
|
|
|
598
598
|
export abstract class ServiceProviderServiceExtensions$instance {
|
|
599
|
-
static
|
|
600
|
-
static
|
|
601
|
-
static
|
|
602
|
-
static
|
|
603
|
-
static
|
|
604
|
-
static
|
|
605
|
-
static
|
|
606
|
-
static
|
|
599
|
+
static CreateAsyncScope(serviceScopeFactory: IServiceScopeFactory): AsyncServiceScope;
|
|
600
|
+
static CreateAsyncScope(provider: IServiceProvider): AsyncServiceScope;
|
|
601
|
+
static CreateScope(provider: IServiceProvider): IServiceScope;
|
|
602
|
+
static GetRequiredService(provider: IServiceProvider, serviceType: Type): unknown;
|
|
603
|
+
static GetRequiredService<T>(provider: IServiceProvider): T;
|
|
604
|
+
static GetService<T>(provider: IServiceProvider): T | undefined;
|
|
605
|
+
static GetServices(provider: IServiceProvider, serviceType: Type): IEnumerable__System_Collections_Generic<unknown | undefined>;
|
|
606
|
+
static GetServices<T>(provider: IServiceProvider): IEnumerable__System_Collections_Generic<T>;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
|
|
610
610
|
export type ServiceProviderServiceExtensions = ServiceProviderServiceExtensions$instance;
|
|
611
611
|
|
|
612
612
|
export abstract class SocketsHttpHandlerBuilderExtensions$instance {
|
|
613
|
-
static
|
|
614
|
-
static
|
|
613
|
+
static Configure(builder: ISocketsHttpHandlerBuilder, configuration: IConfiguration): ISocketsHttpHandlerBuilder;
|
|
614
|
+
static Configure(builder: ISocketsHttpHandlerBuilder, configure: Action<SocketsHttpHandler, IServiceProvider>): ISocketsHttpHandlerBuilder;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
|
|
618
618
|
export type SocketsHttpHandlerBuilderExtensions = SocketsHttpHandlerBuilderExtensions$instance;
|
|
619
619
|
|
|
620
620
|
export abstract class ValidationServiceCollectionExtensions$instance {
|
|
621
|
-
static
|
|
621
|
+
static AddValidation(services: IServiceCollection, configureOptions?: Action<ValidationOptions>): IServiceCollection;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
|