@tsonic/microsoft-extensions 10.0.41 → 10.0.42
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/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Caching.Distributed.d.ts +4 -0
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +11 -11
- package/Microsoft.Extensions.Caching.Hybrid.d.ts +5 -1
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +31 -31
- package/Microsoft.Extensions.Caching.Memory.d.ts +4 -0
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +23 -23
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Configuration.CommandLine.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Configuration.EnvironmentVariables.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +3 -3
- package/Microsoft.Extensions.Configuration.Ini.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +3 -3
- package/Microsoft.Extensions.Configuration.Json.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Configuration.KeyPerFile.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Configuration.Memory.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Configuration.UserSecrets.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +3 -3
- package/Microsoft.Extensions.Configuration.Xml.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.d.ts +4 -0
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +137 -137
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +30 -30
- package/Microsoft.Extensions.DependencyInjection.Extensions.d.ts +4 -0
- package/Microsoft.Extensions.DependencyInjection.d.ts +7 -3
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Diagnostics.HealthChecks.d.ts +4 -0
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +4 -4
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration.d.ts +4 -0
- package/Microsoft.Extensions.Diagnostics.Metrics.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileProviders.Composite.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileProviders.Embedded.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileProviders.Internal.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileProviders.Physical.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.d.ts +4 -0
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +14 -14
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Hosting.Internal.d.ts +4 -0
- package/Microsoft.Extensions.Hosting.d.ts +4 -0
- package/Microsoft.Extensions.Http/internal/index.d.ts +3 -3
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +10 -10
- package/Microsoft.Extensions.Http.Logging.d.ts +4 -0
- package/Microsoft.Extensions.Http.d.ts +5 -1
- package/Microsoft.Extensions.Internal/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Internal.d.ts +4 -0
- package/Microsoft.Extensions.Localization/internal/index.d.ts +14 -14
- package/Microsoft.Extensions.Localization.d.ts +6 -2
- package/Microsoft.Extensions.Logging/internal/index.d.ts +67 -65
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +14 -14
- package/Microsoft.Extensions.Logging.Abstractions.d.ts +6 -2
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +8 -8
- package/Microsoft.Extensions.Logging.Configuration.d.ts +5 -1
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Logging.Console.d.ts +4 -0
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Logging.Debug.d.ts +4 -0
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Logging.EventLog.d.ts +4 -0
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Logging.EventSource.d.ts +4 -0
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.Logging.TraceSource.d.ts +4 -0
- package/Microsoft.Extensions.Logging.d.ts +6 -2
- package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +29 -29
- package/Microsoft.Extensions.ObjectPool.d.ts +7 -3
- package/Microsoft.Extensions.Options/internal/index.d.ts +162 -162
- package/Microsoft.Extensions.Options.d.ts +50 -46
- package/Microsoft.Extensions.Primitives/bindings.json +20 -0
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +8 -7
- package/Microsoft.Extensions.Primitives.d.ts +4 -0
- package/Microsoft.Extensions.Validation/internal/index.d.ts +7 -7
- package/Microsoft.Extensions.Validation.d.ts +4 -0
- package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.WebEncoders.Testing.d.ts +4 -0
- package/Microsoft.Extensions.WebEncoders.d.ts +4 -0
- package/README.md +8 -0
- package/System.Diagnostics/internal/index.d.ts +9 -9
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +5 -5
- package/System.Diagnostics.Eventing.Reader.d.ts +4 -0
- package/System.Diagnostics.d.ts +4 -0
- package/System.Net.Http/internal/index.d.ts +1 -1
- package/System.Net.Http.d.ts +4 -0
- package/System.Security.Cryptography/internal/index.d.ts +2 -2
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +6 -6
- package/System.Security.Cryptography.Pkcs.d.ts +4 -0
- package/System.Security.Cryptography.Xml/bindings.json +404 -404
- package/System.Security.Cryptography.Xml/internal/index.d.ts +37 -37
- package/System.Security.Cryptography.Xml.d.ts +4 -0
- package/System.Security.Cryptography.d.ts +4 -0
- package/__internal/extensions/index.d.ts +191 -191
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Assembly: Microsoft.Extensions.Configuration.Xml
|
|
4
4
|
|
|
5
5
|
// Core type aliases from @tsonic/core
|
|
6
|
-
import type {
|
|
6
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
// Import types from other namespaces
|
|
@@ -40,7 +40,7 @@ export interface __XmlConfigurationProvider$views {
|
|
|
40
40
|
export type XmlConfigurationProvider = XmlConfigurationProvider$instance & __XmlConfigurationProvider$views;
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
export interface XmlConfigurationSource$instance extends FileConfigurationSource {
|
|
43
|
+
export interface XmlConfigurationSource$instance extends FileConfigurationSource, Microsoft_Extensions_Configuration_Internal.IConfigurationSource$instance {
|
|
44
44
|
readonly __tsonic_type_Microsoft_Extensions_Configuration_Xml_XmlConfigurationSource: never;
|
|
45
45
|
|
|
46
46
|
readonly __tsonic_iface_Microsoft_Extensions_Configuration_IConfigurationSource: never;
|
|
@@ -99,7 +99,7 @@ export interface __XmlStreamConfigurationProvider$views {
|
|
|
99
99
|
export type XmlStreamConfigurationProvider = XmlStreamConfigurationProvider$instance & __XmlStreamConfigurationProvider$views;
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
export interface XmlStreamConfigurationSource$instance extends StreamConfigurationSource {
|
|
102
|
+
export interface XmlStreamConfigurationSource$instance extends StreamConfigurationSource, Microsoft_Extensions_Configuration_Internal.IConfigurationSource$instance {
|
|
103
103
|
readonly __tsonic_type_Microsoft_Extensions_Configuration_Xml_XmlStreamConfigurationSource: never;
|
|
104
104
|
|
|
105
105
|
readonly __tsonic_iface_Microsoft_Extensions_Configuration_IConfigurationSource: never;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Configuration.Xml/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { FileConfigurationProvider, FileConfigurationSource, FileLoadExceptionContext, IConfigurationBuilder, IConfigurationProvider, IConfigurationSource, StreamConfigurationProvider, StreamConfigurationSource } from './Microsoft.Extensions.Configuration/internal/index.js';
|
|
10
14
|
import type { IFileProvider } from './Microsoft.Extensions.FileProviders/internal/index.js';
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Configuration/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { CommandLineConfigurationSource } from './Microsoft.Extensions.Configuration.CommandLine/internal/index.js';
|
|
10
14
|
import type { EnvironmentVariablesConfigurationSource } from './Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Assembly: Microsoft.Extensions.Caching.Memory, Microsoft.Extensions.DependencyInjection, Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.Diagnostics, Microsoft.Extensions.Diagnostics.HealthChecks, Microsoft.Extensions.Hosting.Abstractions, Microsoft.Extensions.Http, Microsoft.Extensions.Localization, Microsoft.Extensions.Logging, Microsoft.Extensions.Options, Microsoft.Extensions.Options.ConfigurationExtensions, Microsoft.Extensions.Options.DataAnnotations, Microsoft.Extensions.Validation, Microsoft.Extensions.WebEncoders
|
|
4
4
|
|
|
5
5
|
// Core type aliases from @tsonic/core
|
|
6
|
-
import type {
|
|
6
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
// Import types from other namespaces
|
|
@@ -45,10 +45,10 @@ export enum ServiceLifetime {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
export type ObjectFactory = (serviceProvider: IServiceProvider, arguments: (
|
|
48
|
+
export type ObjectFactory = (serviceProvider: IServiceProvider, arguments: (unknown | null)[] | null) => unknown;
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
export type ObjectFactory_1<T> = (serviceProvider: IServiceProvider, arguments: (
|
|
51
|
+
export type ObjectFactory_1<T extends unknown> = (serviceProvider: IServiceProvider, arguments: (unknown | null)[] | null) => T;
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
export interface IHealthChecksBuilder$instance {
|
|
@@ -74,7 +74,7 @@ export type IHttpClientBuilder = IHttpClientBuilder$instance;
|
|
|
74
74
|
export interface IKeyedServiceProvider$instance extends IServiceProvider {
|
|
75
75
|
readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_IKeyedServiceProvider: never;
|
|
76
76
|
|
|
77
|
-
GetKeyedService(serviceType: Type, serviceKey:
|
|
77
|
+
GetKeyedService(serviceType: Type, serviceKey: unknown | null): unknown | null;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
|
|
@@ -92,7 +92,7 @@ export interface IServiceCollection$instance extends System_Collections_Generic_
|
|
|
92
92
|
|
|
93
93
|
export type IServiceCollection = IServiceCollection$instance;
|
|
94
94
|
|
|
95
|
-
export interface IServiceProviderFactory_1$instance<TContainerBuilder> {
|
|
95
|
+
export interface IServiceProviderFactory_1$instance<TContainerBuilder extends unknown> {
|
|
96
96
|
readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_IServiceProviderFactory_1: never;
|
|
97
97
|
|
|
98
98
|
CreateBuilder(services: IServiceCollection): TContainerBuilder;
|
|
@@ -100,12 +100,12 @@ export interface IServiceProviderFactory_1$instance<TContainerBuilder> {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
export type IServiceProviderFactory_1<TContainerBuilder> = IServiceProviderFactory_1$instance<TContainerBuilder>;
|
|
103
|
+
export type IServiceProviderFactory_1<TContainerBuilder extends unknown> = IServiceProviderFactory_1$instance<TContainerBuilder>;
|
|
104
104
|
|
|
105
105
|
export interface IServiceProviderIsKeyedService$instance extends IServiceProviderIsService {
|
|
106
106
|
readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_IServiceProviderIsKeyedService: never;
|
|
107
107
|
|
|
108
|
-
IsKeyedService(serviceType: Type, serviceKey:
|
|
108
|
+
IsKeyedService(serviceType: Type, serviceKey: unknown | null): boolean;
|
|
109
109
|
IsService(serviceType: Type): boolean;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -156,7 +156,7 @@ export type ISocketsHttpHandlerBuilder = ISocketsHttpHandlerBuilder$instance;
|
|
|
156
156
|
export interface ISupportRequiredService$instance {
|
|
157
157
|
readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_ISupportRequiredService: never;
|
|
158
158
|
|
|
159
|
-
GetRequiredService(serviceType: Type):
|
|
159
|
+
GetRequiredService(serviceType: Type): unknown;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
|
|
@@ -226,13 +226,13 @@ export type DefaultServiceProviderFactory = DefaultServiceProviderFactory$instan
|
|
|
226
226
|
export interface FromKeyedServicesAttribute$instance extends Attribute {
|
|
227
227
|
readonly __tsonic_type_Microsoft_Extensions_DependencyInjection_FromKeyedServicesAttribute: never;
|
|
228
228
|
|
|
229
|
-
readonly Key:
|
|
229
|
+
readonly Key: unknown | null;
|
|
230
230
|
readonly LookupMode: ServiceKeyLookupMode;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
export const FromKeyedServicesAttribute: {
|
|
235
|
-
new(key:
|
|
235
|
+
new(key: unknown | null): FromKeyedServicesAttribute;
|
|
236
236
|
new(): FromKeyedServicesAttribute;
|
|
237
237
|
};
|
|
238
238
|
|
|
@@ -272,15 +272,15 @@ export type ServiceCollection = ServiceCollection$instance & { [index: number]:
|
|
|
272
272
|
export interface ServiceDescriptor$instance {
|
|
273
273
|
readonly __tsonic_type_Microsoft_Extensions_DependencyInjection_ServiceDescriptor: never;
|
|
274
274
|
|
|
275
|
-
readonly ImplementationFactory: Func_2<IServiceProvider,
|
|
276
|
-
readonly ImplementationInstance:
|
|
275
|
+
readonly ImplementationFactory: Func_2<IServiceProvider, unknown> | null;
|
|
276
|
+
readonly ImplementationInstance: unknown | null;
|
|
277
277
|
readonly ImplementationType: Type | null;
|
|
278
278
|
readonly IsKeyedService: boolean;
|
|
279
|
-
readonly KeyedImplementationFactory: Func_3<IServiceProvider,
|
|
280
|
-
readonly KeyedImplementationInstance:
|
|
279
|
+
readonly KeyedImplementationFactory: Func_3<IServiceProvider, unknown | null, unknown> | null;
|
|
280
|
+
readonly KeyedImplementationInstance: unknown | null;
|
|
281
281
|
readonly KeyedImplementationType: Type | null;
|
|
282
282
|
readonly Lifetime: ServiceLifetime;
|
|
283
|
-
readonly ServiceKey:
|
|
283
|
+
readonly ServiceKey: unknown | null;
|
|
284
284
|
readonly ServiceType: Type;
|
|
285
285
|
ToString(): string;
|
|
286
286
|
}
|
|
@@ -288,42 +288,42 @@ export interface ServiceDescriptor$instance {
|
|
|
288
288
|
|
|
289
289
|
export const ServiceDescriptor: {
|
|
290
290
|
new(serviceType: Type, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
291
|
-
new(serviceType: Type, serviceKey:
|
|
292
|
-
new(serviceType: Type, instance:
|
|
293
|
-
new(serviceType: Type, serviceKey:
|
|
294
|
-
new(serviceType: Type, factory: Func_2<IServiceProvider,
|
|
295
|
-
new(serviceType: Type, serviceKey:
|
|
296
|
-
Describe(serviceType: Type, implementationFactory: Func_2<IServiceProvider,
|
|
291
|
+
new(serviceType: Type, serviceKey: unknown | null, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
292
|
+
new(serviceType: Type, instance: unknown): ServiceDescriptor;
|
|
293
|
+
new(serviceType: Type, serviceKey: unknown | null, instance: unknown): ServiceDescriptor;
|
|
294
|
+
new(serviceType: Type, factory: Func_2<IServiceProvider, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
295
|
+
new(serviceType: Type, serviceKey: unknown | null, factory: Func_3<IServiceProvider, unknown | null, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
296
|
+
Describe(serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
297
297
|
Describe(serviceType: Type, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
298
|
-
DescribeKeyed(serviceType: Type, serviceKey:
|
|
299
|
-
DescribeKeyed(serviceType: Type, serviceKey:
|
|
300
|
-
KeyedScoped<TService, TImplementation extends TService>(serviceKey:
|
|
301
|
-
KeyedScoped<TService, TImplementation extends TService>(serviceKey:
|
|
302
|
-
KeyedScoped(service: Type, serviceKey:
|
|
303
|
-
KeyedScoped(service: Type, serviceKey:
|
|
304
|
-
KeyedSingleton<TService, TImplementation extends TService>(serviceKey:
|
|
305
|
-
KeyedSingleton<TService>(serviceKey:
|
|
306
|
-
KeyedSingleton<TService, TImplementation extends TService>(serviceKey:
|
|
307
|
-
KeyedSingleton(serviceType: Type, serviceKey:
|
|
308
|
-
KeyedSingleton(serviceType: Type, serviceKey:
|
|
309
|
-
KeyedSingleton(service: Type, serviceKey:
|
|
310
|
-
KeyedTransient<TService, TImplementation extends TService>(serviceKey:
|
|
311
|
-
KeyedTransient<TService, TImplementation extends TService>(serviceKey:
|
|
312
|
-
KeyedTransient(service: Type, serviceKey:
|
|
313
|
-
KeyedTransient(service: Type, serviceKey:
|
|
314
|
-
Scoped<TService, TImplementation extends TService>(): ServiceDescriptor;
|
|
315
|
-
Scoped<TService, TImplementation extends TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
316
|
-
Scoped(service: Type, implementationFactory: Func_2<IServiceProvider,
|
|
298
|
+
DescribeKeyed(serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
299
|
+
DescribeKeyed(serviceType: Type, serviceKey: unknown | null, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
|
|
300
|
+
KeyedScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TImplementation>): ServiceDescriptor;
|
|
301
|
+
KeyedScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null): ServiceDescriptor;
|
|
302
|
+
KeyedScoped(service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): ServiceDescriptor;
|
|
303
|
+
KeyedScoped(service: Type, serviceKey: unknown | null, implementationType: Type): ServiceDescriptor;
|
|
304
|
+
KeyedSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TImplementation>): ServiceDescriptor;
|
|
305
|
+
KeyedSingleton<TService extends (object | null)>(serviceKey: unknown | null, implementationInstance: TService): ServiceDescriptor;
|
|
306
|
+
KeyedSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null): ServiceDescriptor;
|
|
307
|
+
KeyedSingleton(serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): ServiceDescriptor;
|
|
308
|
+
KeyedSingleton(serviceType: Type, serviceKey: unknown | null, implementationInstance: unknown): ServiceDescriptor;
|
|
309
|
+
KeyedSingleton(service: Type, serviceKey: unknown | null, implementationType: Type): ServiceDescriptor;
|
|
310
|
+
KeyedTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TImplementation>): ServiceDescriptor;
|
|
311
|
+
KeyedTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null): ServiceDescriptor;
|
|
312
|
+
KeyedTransient(service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): ServiceDescriptor;
|
|
313
|
+
KeyedTransient(service: Type, serviceKey: unknown | null, implementationType: Type): ServiceDescriptor;
|
|
314
|
+
Scoped<TService extends (object | null), TImplementation extends (object | null) & TService>(): ServiceDescriptor;
|
|
315
|
+
Scoped<TService extends (object | null), TImplementation extends (object | null) & TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
316
|
+
Scoped(service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): ServiceDescriptor;
|
|
317
317
|
Scoped(service: Type, implementationType: Type): ServiceDescriptor;
|
|
318
|
-
Singleton<TService, TImplementation extends TService>(): ServiceDescriptor;
|
|
319
|
-
Singleton<TService, TImplementation extends TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
320
|
-
Singleton(serviceType: Type, implementationFactory: Func_2<IServiceProvider,
|
|
321
|
-
Singleton(serviceType: Type, implementationInstance:
|
|
318
|
+
Singleton<TService extends (object | null), TImplementation extends (object | null) & TService>(): ServiceDescriptor;
|
|
319
|
+
Singleton<TService extends (object | null), TImplementation extends (object | null) & TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
320
|
+
Singleton(serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): ServiceDescriptor;
|
|
321
|
+
Singleton(serviceType: Type, implementationInstance: unknown): ServiceDescriptor;
|
|
322
322
|
Singleton(service: Type, implementationType: Type): ServiceDescriptor;
|
|
323
|
-
Singleton<TService>(implementationInstance: TService): ServiceDescriptor;
|
|
324
|
-
Transient<TService, TImplementation extends TService>(): ServiceDescriptor;
|
|
325
|
-
Transient<TService, TImplementation extends TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
326
|
-
Transient(service: Type, implementationFactory: Func_2<IServiceProvider,
|
|
323
|
+
Singleton<TService extends (object | null)>(implementationInstance: TService): ServiceDescriptor;
|
|
324
|
+
Transient<TService extends (object | null), TImplementation extends (object | null) & TService>(): ServiceDescriptor;
|
|
325
|
+
Transient<TService extends (object | null), TImplementation extends (object | null) & TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
|
|
326
|
+
Transient(service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): ServiceDescriptor;
|
|
327
327
|
Transient(service: Type, implementationType: Type): ServiceDescriptor;
|
|
328
328
|
};
|
|
329
329
|
|
|
@@ -353,9 +353,9 @@ export interface ServiceProvider$instance extends IKeyedServiceProvider$instance
|
|
|
353
353
|
|
|
354
354
|
Dispose(): void;
|
|
355
355
|
DisposeAsync(): ValueTask;
|
|
356
|
-
GetKeyedService(serviceType: Type, serviceKey:
|
|
357
|
-
GetRequiredKeyedService(serviceType: Type, serviceKey:
|
|
358
|
-
GetService(serviceType: Type):
|
|
356
|
+
GetKeyedService(serviceType: Type, serviceKey: unknown | null): unknown | null;
|
|
357
|
+
GetRequiredKeyedService(serviceType: Type, serviceKey: unknown | null): unknown;
|
|
358
|
+
GetService(serviceType: Type): unknown | null;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
|
|
@@ -387,11 +387,11 @@ export type ServiceProviderOptions = ServiceProviderOptions$instance;
|
|
|
387
387
|
|
|
388
388
|
export abstract class ActivatorUtilities$instance {
|
|
389
389
|
static CreateFactory(instanceType: Type, argumentTypes: Type[]): ObjectFactory;
|
|
390
|
-
static CreateFactory<T>(argumentTypes: Type[]): ObjectFactory_1<T>;
|
|
391
|
-
static CreateInstance<T>(provider: IServiceProvider, ...parameters:
|
|
392
|
-
static CreateInstance(provider: IServiceProvider, instanceType: Type, ...parameters:
|
|
393
|
-
static GetServiceOrCreateInstance(provider: IServiceProvider, type: Type):
|
|
394
|
-
static GetServiceOrCreateInstance<T>(provider: IServiceProvider): T;
|
|
390
|
+
static CreateFactory<T extends unknown>(argumentTypes: Type[]): ObjectFactory_1<T>;
|
|
391
|
+
static CreateInstance<T extends unknown>(provider: IServiceProvider, ...parameters: unknown[]): T;
|
|
392
|
+
static CreateInstance(provider: IServiceProvider, instanceType: Type, ...parameters: unknown[]): unknown;
|
|
393
|
+
static GetServiceOrCreateInstance(provider: IServiceProvider, type: Type): unknown;
|
|
394
|
+
static GetServiceOrCreateInstance<T extends unknown>(provider: IServiceProvider): T;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
|
|
@@ -408,12 +408,12 @@ export type EncoderServiceCollectionExtensions = EncoderServiceCollectionExtensi
|
|
|
408
408
|
export abstract class HealthChecksBuilderAddCheckExtensions$instance {
|
|
409
409
|
static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
|
|
410
410
|
static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
|
|
411
|
-
static AddCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
|
|
412
|
-
static AddCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
|
|
413
|
-
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String> | null, ...args:
|
|
414
|
-
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>, timeout: TimeSpan, ...args:
|
|
415
|
-
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, ...args:
|
|
416
|
-
static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, ...args:
|
|
411
|
+
static AddCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
|
|
412
|
+
static AddCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
|
|
413
|
+
static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String> | null, ...args: unknown[]): IHealthChecksBuilder;
|
|
414
|
+
static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>, timeout: TimeSpan, ...args: unknown[]): IHealthChecksBuilder;
|
|
415
|
+
static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, ...args: unknown[]): IHealthChecksBuilder;
|
|
416
|
+
static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, ...args: unknown[]): IHealthChecksBuilder;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
|
|
@@ -445,12 +445,12 @@ export abstract class HttpClientBuilderExtensions$instance {
|
|
|
445
445
|
static AddDefaultLogger(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
446
446
|
static AddHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_1<DelegatingHandler>): IHttpClientBuilder;
|
|
447
447
|
static AddHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_2<IServiceProvider, DelegatingHandler>): IHttpClientBuilder;
|
|
448
|
-
static AddHttpMessageHandler<THandler extends DelegatingHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
449
|
-
static AddLogger<TLogger extends IHttpClientLogger>(builder: IHttpClientBuilder, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
|
|
448
|
+
static AddHttpMessageHandler<THandler extends unknown & DelegatingHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
449
|
+
static AddLogger<TLogger extends unknown & IHttpClientLogger>(builder: IHttpClientBuilder, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
|
|
450
450
|
static AddLogger(builder: IHttpClientBuilder, httpClientLoggerFactory: Func_2<IServiceProvider, IHttpClientLogger>, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
|
|
451
|
-
static AddTypedClient<TClient>(builder: IHttpClientBuilder, factory: Func_2<HttpClient, TClient>): IHttpClientBuilder;
|
|
452
|
-
static AddTypedClient<TClient>(builder: IHttpClientBuilder, factory: Func_3<HttpClient, IServiceProvider, TClient>): IHttpClientBuilder;
|
|
453
|
-
static AddTypedClient<TClient>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
451
|
+
static AddTypedClient<TClient extends (object | null)>(builder: IHttpClientBuilder, factory: Func_2<HttpClient, TClient>): IHttpClientBuilder;
|
|
452
|
+
static AddTypedClient<TClient extends (object | null)>(builder: IHttpClientBuilder, factory: Func_3<HttpClient, IServiceProvider, TClient>): IHttpClientBuilder;
|
|
453
|
+
static AddTypedClient<TClient extends (object | null)>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
454
454
|
static ConfigureAdditionalHttpMessageHandlers(builder: IHttpClientBuilder, configureAdditionalHandlers: Action_2<IList_1<DelegatingHandler>, IServiceProvider>): IHttpClientBuilder;
|
|
455
455
|
static ConfigureHttpClient(builder: IHttpClientBuilder, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
|
|
456
456
|
static ConfigureHttpClient(builder: IHttpClientBuilder, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
@@ -458,7 +458,7 @@ export abstract class HttpClientBuilderExtensions$instance {
|
|
|
458
458
|
static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Action_2<HttpMessageHandler, IServiceProvider>): IHttpClientBuilder;
|
|
459
459
|
static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_1<HttpMessageHandler>): IHttpClientBuilder;
|
|
460
460
|
static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_2<IServiceProvider, HttpMessageHandler>): IHttpClientBuilder;
|
|
461
|
-
static ConfigurePrimaryHttpMessageHandler<THandler extends HttpMessageHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
461
|
+
static ConfigurePrimaryHttpMessageHandler<THandler extends unknown & HttpMessageHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
462
462
|
static RedactLoggedHeaders(builder: IHttpClientBuilder, redactedLoggedHeaderNames: IEnumerable_1<System_Internal.String>): IHttpClientBuilder;
|
|
463
463
|
static RedactLoggedHeaders(builder: IHttpClientBuilder, shouldRedactHeaderValue: Func_2<System_Internal.String, System_Internal.Boolean>): IHttpClientBuilder;
|
|
464
464
|
static RemoveAllLoggers(builder: IHttpClientBuilder): IHttpClientBuilder;
|
|
@@ -472,16 +472,16 @@ export abstract class HttpClientBuilderExtensions$instance {
|
|
|
472
472
|
export type HttpClientBuilderExtensions = HttpClientBuilderExtensions$instance;
|
|
473
473
|
|
|
474
474
|
export abstract class HttpClientFactoryServiceCollectionExtensions$instance {
|
|
475
|
-
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
|
|
476
|
-
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
|
|
477
|
-
static AddHttpClient<TClient>(services: IServiceCollection, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
|
|
478
|
-
static AddHttpClient<TClient>(services: IServiceCollection, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
479
|
-
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, name: string, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
|
|
480
|
-
static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, name: string, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
|
|
475
|
+
static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
|
|
476
|
+
static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
|
|
477
|
+
static AddHttpClient<TClient extends (object | null)>(services: IServiceCollection, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
|
|
478
|
+
static AddHttpClient<TClient extends (object | null)>(services: IServiceCollection, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
479
|
+
static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, name: string, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
|
|
480
|
+
static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, name: string, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
|
|
481
481
|
static AddHttpClient(services: IServiceCollection, name: string, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
|
|
482
482
|
static AddHttpClient(services: IServiceCollection, name: string, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
|
|
483
483
|
static AddHttpClient(services: IServiceCollection, name: string): IHttpClientBuilder;
|
|
484
|
-
static AddHttpClient<TClient>(services: IServiceCollection): IHttpClientBuilder;
|
|
484
|
+
static AddHttpClient<TClient extends (object | null)>(services: IServiceCollection): IHttpClientBuilder;
|
|
485
485
|
static AddHttpClient(services: IServiceCollection): IServiceCollection;
|
|
486
486
|
static ConfigureHttpClientDefaults(services: IServiceCollection, configure: Action_1<IHttpClientBuilder>): IServiceCollection;
|
|
487
487
|
}
|
|
@@ -490,7 +490,7 @@ export abstract class HttpClientFactoryServiceCollectionExtensions$instance {
|
|
|
490
490
|
export type HttpClientFactoryServiceCollectionExtensions = HttpClientFactoryServiceCollectionExtensions$instance;
|
|
491
491
|
|
|
492
492
|
export abstract class KeyedService$instance {
|
|
493
|
-
static readonly AnyKey:
|
|
493
|
+
static readonly AnyKey: unknown;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
|
|
@@ -531,52 +531,52 @@ export abstract class MetricsServiceExtensions$instance {
|
|
|
531
531
|
export type MetricsServiceExtensions = MetricsServiceExtensions$instance;
|
|
532
532
|
|
|
533
533
|
export abstract class OptionsBuilderConfigurationExtensions$instance {
|
|
534
|
-
static Bind<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): OptionsBuilder_1<TOptions>;
|
|
535
|
-
static Bind<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration): OptionsBuilder_1<TOptions>;
|
|
536
|
-
static BindConfiguration<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, configSectionPath: string, configureBinder?: Action_1<BinderOptions> | null): OptionsBuilder_1<TOptions>;
|
|
534
|
+
static Bind<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): OptionsBuilder_1<TOptions>;
|
|
535
|
+
static Bind<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration): OptionsBuilder_1<TOptions>;
|
|
536
|
+
static BindConfiguration<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>, configSectionPath: string, configureBinder?: Action_1<BinderOptions> | null): OptionsBuilder_1<TOptions>;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
|
|
540
540
|
export type OptionsBuilderConfigurationExtensions = OptionsBuilderConfigurationExtensions$instance;
|
|
541
541
|
|
|
542
542
|
export abstract class OptionsBuilderDataAnnotationsExtensions$instance {
|
|
543
|
-
static ValidateDataAnnotations<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
|
|
543
|
+
static ValidateDataAnnotations<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
|
|
547
547
|
export type OptionsBuilderDataAnnotationsExtensions = OptionsBuilderDataAnnotationsExtensions$instance;
|
|
548
548
|
|
|
549
549
|
export abstract class OptionsBuilderExtensions$instance {
|
|
550
|
-
static ValidateOnStart<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
|
|
550
|
+
static ValidateOnStart<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
|
|
554
554
|
export type OptionsBuilderExtensions = OptionsBuilderExtensions$instance;
|
|
555
555
|
|
|
556
556
|
export abstract class OptionsConfigurationServiceCollectionExtensions$instance {
|
|
557
|
-
static Configure<TOptions>(services: IServiceCollection, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): IServiceCollection;
|
|
558
|
-
static Configure<TOptions>(services: IServiceCollection, config: IConfiguration): IServiceCollection;
|
|
559
|
-
static Configure<TOptions>(services: IServiceCollection, name: string | null, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): IServiceCollection;
|
|
560
|
-
static Configure<TOptions>(services: IServiceCollection, name: string | null, config: IConfiguration): IServiceCollection;
|
|
557
|
+
static Configure<TOptions extends (object | null)>(services: IServiceCollection, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): IServiceCollection;
|
|
558
|
+
static Configure<TOptions extends (object | null)>(services: IServiceCollection, config: IConfiguration): IServiceCollection;
|
|
559
|
+
static Configure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): IServiceCollection;
|
|
560
|
+
static Configure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, config: IConfiguration): IServiceCollection;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
|
|
564
564
|
export type OptionsConfigurationServiceCollectionExtensions = OptionsConfigurationServiceCollectionExtensions$instance;
|
|
565
565
|
|
|
566
566
|
export abstract class OptionsServiceCollectionExtensions$instance {
|
|
567
|
-
static AddOptions<TOptions>(services: IServiceCollection, name: string | null): OptionsBuilder_1<TOptions>;
|
|
567
|
+
static AddOptions<TOptions extends (object | null)>(services: IServiceCollection, name: string | null): OptionsBuilder_1<TOptions>;
|
|
568
568
|
static AddOptions(services: IServiceCollection): IServiceCollection;
|
|
569
|
-
static AddOptions<TOptions>(services: IServiceCollection): OptionsBuilder_1<TOptions>;
|
|
570
|
-
static AddOptionsWithValidateOnStart<TOptions>(services: IServiceCollection, name?: string | null): OptionsBuilder_1<TOptions>;
|
|
571
|
-
static Configure<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
572
|
-
static Configure<TOptions>(services: IServiceCollection, name: string | null, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
573
|
-
static ConfigureAll<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
574
|
-
static ConfigureOptions(services: IServiceCollection, configureInstance:
|
|
569
|
+
static AddOptions<TOptions extends (object | null)>(services: IServiceCollection): OptionsBuilder_1<TOptions>;
|
|
570
|
+
static AddOptionsWithValidateOnStart<TOptions extends (object | null)>(services: IServiceCollection, name?: string | null): OptionsBuilder_1<TOptions>;
|
|
571
|
+
static Configure<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
572
|
+
static Configure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
573
|
+
static ConfigureAll<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
574
|
+
static ConfigureOptions(services: IServiceCollection, configureInstance: unknown): IServiceCollection;
|
|
575
575
|
static ConfigureOptions(services: IServiceCollection, configureType: Type): IServiceCollection;
|
|
576
|
-
static ConfigureOptions<TConfigureOptions>(services: IServiceCollection): IServiceCollection;
|
|
577
|
-
static PostConfigure<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
578
|
-
static PostConfigure<TOptions>(services: IServiceCollection, name: string | null, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
579
|
-
static PostConfigureAll<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
576
|
+
static ConfigureOptions<TConfigureOptions extends (object | null)>(services: IServiceCollection): IServiceCollection;
|
|
577
|
+
static PostConfigure<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
578
|
+
static PostConfigure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
579
|
+
static PostConfigureAll<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
|
|
@@ -592,60 +592,60 @@ export abstract class ServiceCollectionContainerBuilderExtensions$instance {
|
|
|
592
592
|
export type ServiceCollectionContainerBuilderExtensions = ServiceCollectionContainerBuilderExtensions$instance;
|
|
593
593
|
|
|
594
594
|
export abstract class ServiceCollectionHostedServiceExtensions$instance {
|
|
595
|
-
static AddHostedService<THostedService extends IHostedService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, THostedService>): IServiceCollection;
|
|
596
|
-
static AddHostedService<THostedService extends IHostedService>(services: IServiceCollection): IServiceCollection;
|
|
595
|
+
static AddHostedService<THostedService extends (object | null) & IHostedService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, THostedService>): IServiceCollection;
|
|
596
|
+
static AddHostedService<THostedService extends (object | null) & IHostedService>(services: IServiceCollection): IServiceCollection;
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
|
|
600
600
|
export type ServiceCollectionHostedServiceExtensions = ServiceCollectionHostedServiceExtensions$instance;
|
|
601
601
|
|
|
602
602
|
export abstract class ServiceCollectionServiceExtensions$instance {
|
|
603
|
-
static AddKeyedScoped<TService>(services: IServiceCollection, serviceKey:
|
|
604
|
-
static AddKeyedScoped<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey:
|
|
605
|
-
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
606
|
-
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
607
|
-
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
608
|
-
static AddKeyedSingleton<TService>(services: IServiceCollection, serviceKey:
|
|
609
|
-
static AddKeyedSingleton<TService>(services: IServiceCollection, serviceKey:
|
|
610
|
-
static AddKeyedSingleton<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey:
|
|
611
|
-
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
612
|
-
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
613
|
-
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
614
|
-
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
615
|
-
static AddKeyedTransient<TService>(services: IServiceCollection, serviceKey:
|
|
616
|
-
static AddKeyedTransient<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey:
|
|
617
|
-
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
618
|
-
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
619
|
-
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey:
|
|
620
|
-
static AddScoped<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
|
|
621
|
-
static AddScoped(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider,
|
|
603
|
+
static AddKeyedScoped<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): IServiceCollection;
|
|
604
|
+
static AddKeyedScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
|
|
605
|
+
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): IServiceCollection;
|
|
606
|
+
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationType: Type): IServiceCollection;
|
|
607
|
+
static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
|
|
608
|
+
static AddKeyedSingleton<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): IServiceCollection;
|
|
609
|
+
static AddKeyedSingleton<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationInstance: TService): IServiceCollection;
|
|
610
|
+
static AddKeyedSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
|
|
611
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): IServiceCollection;
|
|
612
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationInstance: unknown): IServiceCollection;
|
|
613
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationType: Type): IServiceCollection;
|
|
614
|
+
static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
|
|
615
|
+
static AddKeyedTransient<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): IServiceCollection;
|
|
616
|
+
static AddKeyedTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
|
|
617
|
+
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): IServiceCollection;
|
|
618
|
+
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationType: Type): IServiceCollection;
|
|
619
|
+
static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
|
|
620
|
+
static AddScoped<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
|
|
621
|
+
static AddScoped(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): IServiceCollection;
|
|
622
622
|
static AddScoped(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
|
|
623
623
|
static AddScoped(services: IServiceCollection, serviceType: Type): IServiceCollection;
|
|
624
|
-
static AddScoped<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
|
|
625
|
-
static AddSingleton<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
|
|
626
|
-
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider,
|
|
627
|
-
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationInstance:
|
|
624
|
+
static AddScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection): IServiceCollection;
|
|
625
|
+
static AddSingleton<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
|
|
626
|
+
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): IServiceCollection;
|
|
627
|
+
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationInstance: unknown): IServiceCollection;
|
|
628
628
|
static AddSingleton(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
|
|
629
629
|
static AddSingleton(services: IServiceCollection, serviceType: Type): IServiceCollection;
|
|
630
|
-
static AddSingleton<TService>(services: IServiceCollection, implementationInstance: TService): IServiceCollection;
|
|
631
|
-
static AddSingleton<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
|
|
632
|
-
static AddTransient<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
|
|
633
|
-
static AddTransient(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider,
|
|
630
|
+
static AddSingleton<TService extends (object | null)>(services: IServiceCollection, implementationInstance: TService): IServiceCollection;
|
|
631
|
+
static AddSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection): IServiceCollection;
|
|
632
|
+
static AddTransient<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
|
|
633
|
+
static AddTransient(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): IServiceCollection;
|
|
634
634
|
static AddTransient(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
|
|
635
635
|
static AddTransient(services: IServiceCollection, serviceType: Type): IServiceCollection;
|
|
636
|
-
static AddTransient<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
|
|
636
|
+
static AddTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection): IServiceCollection;
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
|
|
640
640
|
export type ServiceCollectionServiceExtensions = ServiceCollectionServiceExtensions$instance;
|
|
641
641
|
|
|
642
642
|
export abstract class ServiceProviderKeyedServiceExtensions$instance {
|
|
643
|
-
static GetKeyedService<T>(provider: IServiceProvider, serviceKey:
|
|
644
|
-
static GetKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey:
|
|
645
|
-
static GetKeyedServices<T>(provider: IServiceProvider, serviceKey:
|
|
646
|
-
static GetKeyedServices(provider: IServiceProvider, serviceType: Type, serviceKey:
|
|
647
|
-
static GetRequiredKeyedService<T>(provider: IServiceProvider, serviceKey:
|
|
648
|
-
static GetRequiredKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey:
|
|
643
|
+
static GetKeyedService<T extends unknown>(provider: IServiceProvider, serviceKey: unknown | null): T | null;
|
|
644
|
+
static GetKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown | null): unknown | null;
|
|
645
|
+
static GetKeyedServices<T extends unknown>(provider: IServiceProvider, serviceKey: unknown | null): IEnumerable_1<T>;
|
|
646
|
+
static GetKeyedServices(provider: IServiceProvider, serviceType: Type, serviceKey: unknown | null): IEnumerable_1<unknown | null>;
|
|
647
|
+
static GetRequiredKeyedService<T extends unknown>(provider: IServiceProvider, serviceKey: unknown | null): T;
|
|
648
|
+
static GetRequiredKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown | null): unknown;
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
|
|
@@ -655,11 +655,11 @@ export abstract class ServiceProviderServiceExtensions$instance {
|
|
|
655
655
|
static CreateAsyncScope(serviceScopeFactory: IServiceScopeFactory): AsyncServiceScope;
|
|
656
656
|
static CreateAsyncScope(provider: IServiceProvider): AsyncServiceScope;
|
|
657
657
|
static CreateScope(provider: IServiceProvider): IServiceScope;
|
|
658
|
-
static GetRequiredService(provider: IServiceProvider, serviceType: Type):
|
|
659
|
-
static GetRequiredService<T>(provider: IServiceProvider): T;
|
|
660
|
-
static GetService<T>(provider: IServiceProvider): T | null;
|
|
661
|
-
static GetServices(provider: IServiceProvider, serviceType: Type): IEnumerable_1<
|
|
662
|
-
static GetServices<T>(provider: IServiceProvider): IEnumerable_1<T>;
|
|
658
|
+
static GetRequiredService(provider: IServiceProvider, serviceType: Type): unknown;
|
|
659
|
+
static GetRequiredService<T extends unknown>(provider: IServiceProvider): T;
|
|
660
|
+
static GetService<T extends unknown>(provider: IServiceProvider): T | null;
|
|
661
|
+
static GetServices(provider: IServiceProvider, serviceType: Type): IEnumerable_1<unknown | null>;
|
|
662
|
+
static GetServices<T extends unknown>(provider: IServiceProvider): IEnumerable_1<T>;
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
|