@tsonic/microsoft-extensions 10.0.40 → 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 +11 -10
- package/Microsoft.Extensions.Caching.Distributed.d.ts +4 -0
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +12 -14
- package/Microsoft.Extensions.Caching.Hybrid.d.ts +5 -1
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +32 -34
- package/Microsoft.Extensions.Caching.Memory.d.ts +4 -0
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +72 -74
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +7 -6
- package/Microsoft.Extensions.Configuration.CommandLine.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +7 -6
- package/Microsoft.Extensions.Configuration.EnvironmentVariables.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.Configuration.Ini.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +5 -4
- package/Microsoft.Extensions.Configuration.Json.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.Configuration.KeyPerFile.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.Configuration.Memory.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Configuration.UserSecrets.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +7 -6
- 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 +132 -131
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +29 -28
- 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 +20 -19
- package/Microsoft.Extensions.Diagnostics.HealthChecks.d.ts +4 -0
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +31 -33
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +3 -2
- 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 +6 -5
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileProviders.Composite.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileProviders.Embedded.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileProviders.Internal.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +6 -5
- 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 +9 -8
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +9 -8
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +5 -4
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +4 -3
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/bindings.json +230 -230
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +50 -49
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.d.ts +6 -2
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +3 -2
- 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 +31 -30
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +3 -2
- 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 +7 -6
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +11 -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 +3 -2
- package/Microsoft.Extensions.Internal.d.ts +4 -0
- package/Microsoft.Extensions.Localization/internal/index.d.ts +18 -17
- package/Microsoft.Extensions.Localization.d.ts +6 -2
- package/Microsoft.Extensions.Logging/internal/index.d.ts +91 -88
- package/Microsoft.Extensions.Logging.Abstractions/bindings.json +4 -1
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +20 -19
- package/Microsoft.Extensions.Logging.Abstractions.d.ts +6 -2
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +10 -9
- package/Microsoft.Extensions.Logging.Configuration.d.ts +5 -1
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +15 -17
- package/Microsoft.Extensions.Logging.Console.d.ts +4 -0
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Logging.Debug.d.ts +4 -0
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +12 -11
- package/Microsoft.Extensions.Logging.EventLog.d.ts +4 -0
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Logging.EventSource.d.ts +4 -0
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +4 -3
- 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 +31 -30
- package/Microsoft.Extensions.ObjectPool.d.ts +7 -3
- package/Microsoft.Extensions.Options/internal/index.d.ts +239 -238
- package/Microsoft.Extensions.Options.d.ts +50 -46
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +30 -32
- package/Microsoft.Extensions.Primitives.d.ts +5 -1
- package/Microsoft.Extensions.Validation/internal/index.d.ts +14 -16
- package/Microsoft.Extensions.Validation.d.ts +4 -0
- package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +5 -4
- package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +2 -4
- package/Microsoft.Extensions.WebEncoders.Testing.d.ts +4 -0
- package/Microsoft.Extensions.WebEncoders.d.ts +4 -0
- package/README.md +53 -15
- package/System.Diagnostics/internal/index.d.ts +3 -2
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +3 -2
- package/System.Diagnostics.Eventing.Reader.d.ts +4 -0
- package/System.Diagnostics.d.ts +4 -0
- package/System.Net.Http/internal/index.d.ts +3 -2
- package/System.Net.Http.d.ts +4 -0
- package/System.Security.Cryptography/internal/index.d.ts +4 -3
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +44 -46
- 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 +117 -119
- package/System.Security.Cryptography.Xml.d.ts +4 -0
- package/System.Security.Cryptography.d.ts +4 -0
- package/__internal/extensions/index.d.ts +212 -214
- package/package.json +3 -3
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Localization
|
|
3
3
|
// Assembly: Microsoft.Extensions.Localization, Microsoft.Extensions.Localization.Abstractions
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
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
|
// Import types from other namespaces
|
|
9
10
|
import type { ILogger, ILoggerFactory } from "../../Microsoft.Extensions.Logging/internal/index.js";
|
|
@@ -18,7 +19,7 @@ import type { Attribute, Boolean as ClrBoolean, Func_2, Object as ClrObject, Str
|
|
|
18
19
|
export interface IResourceNamesCache$instance {
|
|
19
20
|
readonly __tsonic_iface_Microsoft_Extensions_Localization_IResourceNamesCache: never;
|
|
20
21
|
|
|
21
|
-
GetOrAdd(name: string, valueFactory: Func_2<System_Internal.String, IList_1<System_Internal.String
|
|
22
|
+
GetOrAdd(name: string, valueFactory: Func_2<System_Internal.String, IList_1<System_Internal.String> | null>): IList_1<System_Internal.String> | null;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
|
|
@@ -35,7 +36,7 @@ export interface IStringLocalizer$instance {
|
|
|
35
36
|
|
|
36
37
|
export type IStringLocalizer = IStringLocalizer$instance;
|
|
37
38
|
|
|
38
|
-
export interface IStringLocalizer_1$instance<T> extends IStringLocalizer {
|
|
39
|
+
export interface IStringLocalizer_1$instance<T extends unknown> extends IStringLocalizer {
|
|
39
40
|
readonly __tsonic_iface_Microsoft_Extensions_Localization_IStringLocalizer_1: never;
|
|
40
41
|
|
|
41
42
|
get_Item2(name: string, ...arguments: unknown[]): LocalizedString;
|
|
@@ -45,9 +46,9 @@ export interface IStringLocalizer_1$instance<T> extends IStringLocalizer {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
|
|
48
|
-
export interface IStringLocalizer_1$instance<T> extends IStringLocalizer$instance {}
|
|
49
|
+
export interface IStringLocalizer_1$instance<T extends unknown> extends IStringLocalizer$instance {}
|
|
49
50
|
|
|
50
|
-
export type IStringLocalizer_1<T> = IStringLocalizer_1$instance<T>;
|
|
51
|
+
export type IStringLocalizer_1<T extends unknown> = IStringLocalizer_1$instance<T>;
|
|
51
52
|
|
|
52
53
|
export interface IStringLocalizerFactory$instance {
|
|
53
54
|
readonly __tsonic_iface_Microsoft_Extensions_Localization_IStringLocalizerFactory: never;
|
|
@@ -78,7 +79,7 @@ export interface LocalizedString$instance {
|
|
|
78
79
|
|
|
79
80
|
readonly Name: string;
|
|
80
81
|
readonly ResourceNotFound: boolean;
|
|
81
|
-
readonly SearchedLocation: string |
|
|
82
|
+
readonly SearchedLocation: string | null;
|
|
82
83
|
readonly Value: string;
|
|
83
84
|
ToString(): string;
|
|
84
85
|
}
|
|
@@ -87,7 +88,7 @@ export interface LocalizedString$instance {
|
|
|
87
88
|
export const LocalizedString: {
|
|
88
89
|
new(name: string, value: string): LocalizedString;
|
|
89
90
|
new(name: string, value: string, resourceNotFound: boolean): LocalizedString;
|
|
90
|
-
new(name: string, value: string, resourceNotFound: boolean, searchedLocation: string): LocalizedString;
|
|
91
|
+
new(name: string, value: string, resourceNotFound: boolean, searchedLocation: string | null): LocalizedString;
|
|
91
92
|
};
|
|
92
93
|
|
|
93
94
|
|
|
@@ -107,7 +108,7 @@ export const ResourceLocationAttribute: {
|
|
|
107
108
|
|
|
108
109
|
export type ResourceLocationAttribute = ResourceLocationAttribute$instance;
|
|
109
110
|
|
|
110
|
-
export interface ResourceManagerStringLocalizer$instance {
|
|
111
|
+
export interface ResourceManagerStringLocalizer$instance extends IStringLocalizer$instance {
|
|
111
112
|
readonly __tsonic_type_Microsoft_Extensions_Localization_ResourceManagerStringLocalizer: never;
|
|
112
113
|
|
|
113
114
|
readonly __tsonic_iface_Microsoft_Extensions_Localization_IStringLocalizer: never;
|
|
@@ -138,12 +139,12 @@ export interface ResourceManagerStringLocalizerFactory$instance extends IStringL
|
|
|
138
139
|
Create(resourceSource: Type): IStringLocalizer;
|
|
139
140
|
Create(baseName: string, location: string): IStringLocalizer;
|
|
140
141
|
CreateResourceManagerStringLocalizer(assembly: Assembly, baseName: string): ResourceManagerStringLocalizer;
|
|
141
|
-
GetResourceLocationAttribute(assembly: Assembly): ResourceLocationAttribute |
|
|
142
|
+
GetResourceLocationAttribute(assembly: Assembly): ResourceLocationAttribute | null;
|
|
142
143
|
GetResourcePrefix(typeInfo: TypeInfo): string;
|
|
143
|
-
GetResourcePrefix(typeInfo: TypeInfo, baseNamespace: string, resourcesRelativePath: string): string;
|
|
144
|
+
GetResourcePrefix(typeInfo: TypeInfo, baseNamespace: string | null, resourcesRelativePath: string | null): string;
|
|
144
145
|
GetResourcePrefix(baseResourceName: string, baseNamespace: string): string;
|
|
145
146
|
GetResourcePrefix(location: string, baseName: string, resourceLocation: string): string;
|
|
146
|
-
GetRootNamespaceAttribute(assembly: Assembly): RootNamespaceAttribute |
|
|
147
|
+
GetRootNamespaceAttribute(assembly: Assembly): RootNamespaceAttribute | null;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
|
|
@@ -164,7 +165,7 @@ export interface ResourceNamesCache$instance extends IResourceNamesCache$instanc
|
|
|
164
165
|
|
|
165
166
|
readonly __tsonic_iface_Microsoft_Extensions_Localization_IResourceNamesCache: never;
|
|
166
167
|
|
|
167
|
-
GetOrAdd(name: string, valueFactory: Func_2<System_Internal.String, IList_1<System_Internal.String
|
|
168
|
+
GetOrAdd(name: string, valueFactory: Func_2<System_Internal.String, IList_1<System_Internal.String> | null>): IList_1<System_Internal.String> | null;
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
|
|
@@ -194,7 +195,7 @@ export const RootNamespaceAttribute: {
|
|
|
194
195
|
|
|
195
196
|
export type RootNamespaceAttribute = RootNamespaceAttribute$instance;
|
|
196
197
|
|
|
197
|
-
export interface StringLocalizer_1$instance<TResourceSource> extends IStringLocalizer_1<TResourceSource> {
|
|
198
|
+
export interface StringLocalizer_1$instance<TResourceSource extends unknown> extends IStringLocalizer_1<TResourceSource>, IStringLocalizer_1$instance<TResourceSource> {
|
|
198
199
|
readonly __tsonic_type_Microsoft_Extensions_Localization_StringLocalizer_1: never;
|
|
199
200
|
|
|
200
201
|
readonly __tsonic_iface_Microsoft_Extensions_Localization_IStringLocalizer: never;
|
|
@@ -207,15 +208,15 @@ export interface StringLocalizer_1$instance<TResourceSource> extends IStringLoca
|
|
|
207
208
|
|
|
208
209
|
|
|
209
210
|
export const StringLocalizer_1: {
|
|
210
|
-
new<TResourceSource>(factory: IStringLocalizerFactory): StringLocalizer_1<TResourceSource>;
|
|
211
|
+
new<TResourceSource extends unknown>(factory: IStringLocalizerFactory): StringLocalizer_1<TResourceSource>;
|
|
211
212
|
};
|
|
212
213
|
|
|
213
214
|
|
|
214
|
-
export interface __StringLocalizer_1$views<TResourceSource> {
|
|
215
|
+
export interface __StringLocalizer_1$views<TResourceSource extends unknown> {
|
|
215
216
|
As_IStringLocalizer(): IStringLocalizer$instance;
|
|
216
217
|
}
|
|
217
218
|
|
|
218
|
-
export type StringLocalizer_1<TResourceSource> = StringLocalizer_1$instance<TResourceSource> & __StringLocalizer_1$views<TResourceSource>;
|
|
219
|
+
export type StringLocalizer_1<TResourceSource extends unknown> = StringLocalizer_1$instance<TResourceSource> & __StringLocalizer_1$views<TResourceSource>;
|
|
219
220
|
|
|
220
221
|
|
|
221
222
|
export abstract class StringLocalizerExtensions$instance {
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Localization/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 { ILogger, ILoggerFactory } from './Microsoft.Extensions.Logging/internal/index.js';
|
|
10
14
|
import type { IOptions_1 } from './Microsoft.Extensions.Options/internal/index.js';
|
|
@@ -34,10 +38,10 @@ declare const __unspecified: unique symbol;
|
|
|
34
38
|
export type __ = typeof __unspecified;
|
|
35
39
|
|
|
36
40
|
export type IStringLocalizer<
|
|
37
|
-
T1 = __,
|
|
41
|
+
T1 extends unknown | __ = __,
|
|
38
42
|
> =
|
|
39
43
|
[T1] extends [__] ? Internal.IStringLocalizer :
|
|
40
|
-
Internal.IStringLocalizer_1<T1
|
|
44
|
+
[T1] extends [unknown] ? Internal.IStringLocalizer_1<T1> : never;
|
|
41
45
|
|
|
42
46
|
// Extension methods (C# using semantics)
|
|
43
47
|
export type { ExtensionMethods_Microsoft_Extensions_Localization as ExtensionMethods } from './__internal/extensions/index.js';
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Logging
|
|
3
3
|
// Assembly: Microsoft.Extensions.Logging, Microsoft.Extensions.Logging.Abstractions, Microsoft.Extensions.Logging.Configuration, Microsoft.Extensions.Logging.Console, Microsoft.Extensions.Logging.Debug, Microsoft.Extensions.Logging.EventLog, Microsoft.Extensions.Logging.EventSource, Microsoft.Extensions.Logging.TraceSource
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
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
|
// Import types from other namespaces
|
|
9
10
|
import type { IConfiguration } from "../../Microsoft.Extensions.Configuration/internal/index.js";
|
|
@@ -42,8 +43,8 @@ export enum LogLevel {
|
|
|
42
43
|
export interface IExternalScopeProvider$instance {
|
|
43
44
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_IExternalScopeProvider: never;
|
|
44
45
|
|
|
45
|
-
ForEachScope<TState>(callback: Action_2<unknown, TState>, state: TState): void;
|
|
46
|
-
Push(state: unknown): IDisposable;
|
|
46
|
+
ForEachScope<TState extends unknown>(callback: Action_2<unknown | null, TState>, state: TState): void;
|
|
47
|
+
Push(state: unknown | null): IDisposable;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
|
|
@@ -52,26 +53,28 @@ export type IExternalScopeProvider = IExternalScopeProvider$instance;
|
|
|
52
53
|
export interface ILogger$instance {
|
|
53
54
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILogger: never;
|
|
54
55
|
|
|
55
|
-
BeginScope<TState>(state: TState): IDisposable;
|
|
56
|
+
BeginScope<TState extends unknown>(state: TState): IDisposable;
|
|
56
57
|
IsEnabled(logLevel: LogLevel): boolean;
|
|
57
|
-
Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): void;
|
|
58
|
+
Log<TState extends unknown>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
export type ILogger = ILogger$instance;
|
|
62
63
|
|
|
63
|
-
export interface ILogger_1$instance<TCategoryName> extends ILogger {
|
|
64
|
+
export interface ILogger_1$instance<TCategoryName extends unknown> extends ILogger {
|
|
64
65
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILogger_1: never;
|
|
65
66
|
|
|
67
|
+
BeginScope<TState extends unknown>(state: TState): IDisposable;
|
|
66
68
|
BeginScope<TState>(state: TState): IDisposable;
|
|
67
69
|
IsEnabled(logLevel: LogLevel): boolean;
|
|
68
|
-
Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): void;
|
|
70
|
+
Log<TState extends unknown>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
|
|
71
|
+
Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
|
|
72
|
-
export interface ILogger_1$instance<TCategoryName> extends ILogger$instance {}
|
|
75
|
+
export interface ILogger_1$instance<TCategoryName extends unknown> extends ILogger$instance {}
|
|
73
76
|
|
|
74
|
-
export type ILogger_1<TCategoryName> = ILogger_1$instance<TCategoryName>;
|
|
77
|
+
export type ILogger_1<TCategoryName extends unknown> = ILogger_1$instance<TCategoryName>;
|
|
75
78
|
|
|
76
79
|
export interface ILoggerFactory$instance extends IDisposable {
|
|
77
80
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILoggerFactory: never;
|
|
@@ -120,16 +123,16 @@ export interface EventId$instance {
|
|
|
120
123
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
121
124
|
|
|
122
125
|
readonly Id: int;
|
|
123
|
-
readonly Name: string |
|
|
126
|
+
readonly Name: string | null;
|
|
124
127
|
Equals(other: EventId): boolean;
|
|
125
|
-
Equals(obj: unknown): boolean;
|
|
128
|
+
Equals(obj: unknown | null): boolean;
|
|
126
129
|
GetHashCode(): int;
|
|
127
130
|
ToString(): string;
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
|
|
131
134
|
export const EventId: {
|
|
132
|
-
new(id: int, name: string): EventId;
|
|
135
|
+
new(id: int, name: string | null): EventId;
|
|
133
136
|
};
|
|
134
137
|
|
|
135
138
|
|
|
@@ -149,7 +152,7 @@ export const LogDefineOptions: {
|
|
|
149
152
|
|
|
150
153
|
export type LogDefineOptions = LogDefineOptions$instance;
|
|
151
154
|
|
|
152
|
-
export interface Logger_1$instance<T> extends ILogger_1$instance<T> {
|
|
155
|
+
export interface Logger_1$instance<T extends unknown> extends ILogger_1$instance<T> {
|
|
153
156
|
readonly __tsonic_type_Microsoft_Extensions_Logging_Logger_1: never;
|
|
154
157
|
|
|
155
158
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILogger: never;
|
|
@@ -159,15 +162,15 @@ export interface Logger_1$instance<T> extends ILogger_1$instance<T> {
|
|
|
159
162
|
|
|
160
163
|
|
|
161
164
|
export const Logger_1: {
|
|
162
|
-
new<T>(factory: ILoggerFactory): Logger_1<T>;
|
|
165
|
+
new<T extends unknown>(factory: ILoggerFactory): Logger_1<T>;
|
|
163
166
|
};
|
|
164
167
|
|
|
165
168
|
|
|
166
|
-
export interface __Logger_1$views<T> {
|
|
169
|
+
export interface __Logger_1$views<T extends unknown> {
|
|
167
170
|
As_ILogger(): ILogger$instance;
|
|
168
171
|
}
|
|
169
172
|
|
|
170
|
-
export type Logger_1<T> = Logger_1$instance<T> & __Logger_1$views<T>;
|
|
173
|
+
export type Logger_1<T extends unknown> = Logger_1$instance<T> & __Logger_1$views<T>;
|
|
171
174
|
|
|
172
175
|
|
|
173
176
|
export interface LoggerExternalScopeProvider$instance extends IExternalScopeProvider$instance {
|
|
@@ -175,8 +178,8 @@ export interface LoggerExternalScopeProvider$instance extends IExternalScopeProv
|
|
|
175
178
|
|
|
176
179
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_IExternalScopeProvider: never;
|
|
177
180
|
|
|
178
|
-
ForEachScope<TState>(callback: Action_2<unknown, TState>, state: TState): void;
|
|
179
|
-
Push(state: unknown): IDisposable;
|
|
181
|
+
ForEachScope<TState extends unknown>(callback: Action_2<unknown | null, TState>, state: TState): void;
|
|
182
|
+
Push(state: unknown | null): IDisposable;
|
|
180
183
|
}
|
|
181
184
|
|
|
182
185
|
|
|
@@ -210,8 +213,8 @@ export const LoggerFactory: {
|
|
|
210
213
|
new(providers: IEnumerable_1<ILoggerProvider>): LoggerFactory;
|
|
211
214
|
new(providers: IEnumerable_1<ILoggerProvider>, filterOptions: LoggerFilterOptions): LoggerFactory;
|
|
212
215
|
new(providers: IEnumerable_1<ILoggerProvider>, filterOption: IOptionsMonitor_1<LoggerFilterOptions>): LoggerFactory;
|
|
213
|
-
new(providers: IEnumerable_1<ILoggerProvider>, filterOption: IOptionsMonitor_1<LoggerFilterOptions>, options: IOptions_1<LoggerFactoryOptions>): LoggerFactory;
|
|
214
|
-
new(providers: IEnumerable_1<ILoggerProvider>, filterOption: IOptionsMonitor_1<LoggerFilterOptions>, options: IOptions_1<LoggerFactoryOptions
|
|
216
|
+
new(providers: IEnumerable_1<ILoggerProvider>, filterOption: IOptionsMonitor_1<LoggerFilterOptions>, options: IOptions_1<LoggerFactoryOptions> | null): LoggerFactory;
|
|
217
|
+
new(providers: IEnumerable_1<ILoggerProvider>, filterOption: IOptionsMonitor_1<LoggerFilterOptions>, options: IOptions_1<LoggerFactoryOptions> | null, scopeProvider: IExternalScopeProvider | null): LoggerFactory;
|
|
215
218
|
Create(configure: Action_1<ILoggingBuilder>): ILoggerFactory;
|
|
216
219
|
};
|
|
217
220
|
|
|
@@ -256,16 +259,16 @@ export type LoggerFilterOptions = LoggerFilterOptions$instance;
|
|
|
256
259
|
export interface LoggerFilterRule$instance {
|
|
257
260
|
readonly __tsonic_type_Microsoft_Extensions_Logging_LoggerFilterRule: never;
|
|
258
261
|
|
|
259
|
-
readonly CategoryName: string |
|
|
260
|
-
readonly Filter: Func_4<string |
|
|
262
|
+
readonly CategoryName: string | null;
|
|
263
|
+
readonly Filter: Func_4<string | null, string | null, LogLevel, System_Internal.Boolean> | null;
|
|
261
264
|
readonly LogLevel: Nullable_1<LogLevel>;
|
|
262
|
-
readonly ProviderName: string |
|
|
265
|
+
readonly ProviderName: string | null;
|
|
263
266
|
ToString(): string;
|
|
264
267
|
}
|
|
265
268
|
|
|
266
269
|
|
|
267
270
|
export const LoggerFilterRule: {
|
|
268
|
-
new(providerName: string, categoryName: string, logLevel: Nullable_1<LogLevel>, filter: Func_4<
|
|
271
|
+
new(providerName: string | null, categoryName: string | null, logLevel: Nullable_1<LogLevel>, filter: Func_4<string | null, string | null, LogLevel, System_Internal.Boolean> | null): LoggerFilterRule;
|
|
269
272
|
};
|
|
270
273
|
|
|
271
274
|
|
|
@@ -275,8 +278,8 @@ export interface LoggerMessageAttribute$instance extends Attribute {
|
|
|
275
278
|
readonly __tsonic_type_Microsoft_Extensions_Logging_LoggerMessageAttribute: never;
|
|
276
279
|
|
|
277
280
|
EventId: int;
|
|
278
|
-
get EventName(): string |
|
|
279
|
-
set EventName(value: string |
|
|
281
|
+
get EventName(): string | null;
|
|
282
|
+
set EventName(value: string | null);
|
|
280
283
|
Level: LogLevel;
|
|
281
284
|
Message: string;
|
|
282
285
|
SkipEnabledCheck: boolean;
|
|
@@ -319,8 +322,8 @@ export abstract class ConsoleLoggerExtensions$instance {
|
|
|
319
322
|
static AddConsole(factory: ILoggerFactory): ILoggerFactory;
|
|
320
323
|
static AddConsole(builder: ILoggingBuilder, configure: Action_1<ConsoleLoggerOptions>): ILoggingBuilder;
|
|
321
324
|
static AddConsole(builder: ILoggingBuilder): ILoggingBuilder;
|
|
322
|
-
static AddConsoleFormatter<TFormatter extends ConsoleFormatter, TOptions extends ConsoleFormatterOptions>(builder: ILoggingBuilder, configure: Action_1<TOptions>): ILoggingBuilder;
|
|
323
|
-
static AddConsoleFormatter<TFormatter extends ConsoleFormatter, TOptions extends ConsoleFormatterOptions>(builder: ILoggingBuilder): ILoggingBuilder;
|
|
325
|
+
static AddConsoleFormatter<TFormatter extends unknown & ConsoleFormatter, TOptions extends unknown & ConsoleFormatterOptions>(builder: ILoggingBuilder, configure: Action_1<TOptions>): ILoggingBuilder;
|
|
326
|
+
static AddConsoleFormatter<TFormatter extends unknown & ConsoleFormatter, TOptions extends unknown & ConsoleFormatterOptions>(builder: ILoggingBuilder): ILoggingBuilder;
|
|
324
327
|
static AddJsonConsole(builder: ILoggingBuilder, configure: Action_1<JsonConsoleFormatterOptions>): ILoggingBuilder;
|
|
325
328
|
static AddJsonConsole(builder: ILoggingBuilder): ILoggingBuilder;
|
|
326
329
|
static AddSimpleConsole(builder: ILoggingBuilder, configure: Action_1<SimpleConsoleFormatterOptions>): ILoggingBuilder;
|
|
@@ -364,50 +367,50 @@ export type EventSourceLoggerFactoryExtensions = EventSourceLoggerFactoryExtensi
|
|
|
364
367
|
|
|
365
368
|
export abstract class FilterLoggingBuilderExtensions$instance {
|
|
366
369
|
static AddFilter(builder: ILoggingBuilder, levelFilter: Func_2<LogLevel, System_Internal.Boolean>): ILoggingBuilder;
|
|
367
|
-
static AddFilter(builder: ILoggingBuilder, categoryLevelFilter: Func_3<
|
|
368
|
-
static AddFilter(builder: ILoggingBuilder, filter: Func_4<
|
|
369
|
-
static AddFilter(builder: ILoggingBuilder, category: string, level: LogLevel): ILoggingBuilder;
|
|
370
|
-
static AddFilter(builder: ILoggingBuilder, category: string, levelFilter: Func_2<LogLevel, System_Internal.Boolean>): ILoggingBuilder;
|
|
370
|
+
static AddFilter(builder: ILoggingBuilder, categoryLevelFilter: Func_3<string | null, LogLevel, System_Internal.Boolean>): ILoggingBuilder;
|
|
371
|
+
static AddFilter(builder: ILoggingBuilder, filter: Func_4<string | null, string | null, LogLevel, System_Internal.Boolean>): ILoggingBuilder;
|
|
372
|
+
static AddFilter(builder: ILoggingBuilder, category: string | null, level: LogLevel): ILoggingBuilder;
|
|
373
|
+
static AddFilter(builder: ILoggingBuilder, category: string | null, levelFilter: Func_2<LogLevel, System_Internal.Boolean>): ILoggingBuilder;
|
|
371
374
|
static AddFilter(builder: LoggerFilterOptions, levelFilter: Func_2<LogLevel, System_Internal.Boolean>): LoggerFilterOptions;
|
|
372
|
-
static AddFilter(builder: LoggerFilterOptions, categoryLevelFilter: Func_3<
|
|
373
|
-
static AddFilter(builder: LoggerFilterOptions, filter: Func_4<
|
|
374
|
-
static AddFilter(builder: LoggerFilterOptions, category: string, level: LogLevel): LoggerFilterOptions;
|
|
375
|
-
static AddFilter(builder: LoggerFilterOptions, category: string, levelFilter: Func_2<LogLevel, System_Internal.Boolean>): LoggerFilterOptions;
|
|
375
|
+
static AddFilter(builder: LoggerFilterOptions, categoryLevelFilter: Func_3<string | null, LogLevel, System_Internal.Boolean>): LoggerFilterOptions;
|
|
376
|
+
static AddFilter(builder: LoggerFilterOptions, filter: Func_4<string | null, string | null, LogLevel, System_Internal.Boolean>): LoggerFilterOptions;
|
|
377
|
+
static AddFilter(builder: LoggerFilterOptions, category: string | null, level: LogLevel): LoggerFilterOptions;
|
|
378
|
+
static AddFilter(builder: LoggerFilterOptions, category: string | null, levelFilter: Func_2<LogLevel, System_Internal.Boolean>): LoggerFilterOptions;
|
|
376
379
|
}
|
|
377
380
|
|
|
378
381
|
|
|
379
382
|
export type FilterLoggingBuilderExtensions = FilterLoggingBuilderExtensions$instance;
|
|
380
383
|
|
|
381
384
|
export abstract class LoggerExtensions$instance {
|
|
382
|
-
static BeginScope(logger: ILogger, messageFormat: string, ...args: unknown[]): IDisposable |
|
|
383
|
-
static Log(logger: ILogger, logLevel: LogLevel, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
384
|
-
static Log(logger: ILogger, logLevel: LogLevel, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
385
|
-
static Log(logger: ILogger, logLevel: LogLevel, exception: Exception, message: string, ...args: unknown[]): void;
|
|
386
|
-
static Log(logger: ILogger, logLevel: LogLevel, message: string, ...args: unknown[]): void;
|
|
387
|
-
static LogCritical(logger: ILogger, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
388
|
-
static LogCritical(logger: ILogger, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
389
|
-
static LogCritical(logger: ILogger, exception: Exception, message: string, ...args: unknown[]): void;
|
|
390
|
-
static LogCritical(logger: ILogger, message: string, ...args: unknown[]): void;
|
|
391
|
-
static LogDebug(logger: ILogger, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
392
|
-
static LogDebug(logger: ILogger, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
393
|
-
static LogDebug(logger: ILogger, exception: Exception, message: string, ...args: unknown[]): void;
|
|
394
|
-
static LogDebug(logger: ILogger, message: string, ...args: unknown[]): void;
|
|
395
|
-
static LogError(logger: ILogger, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
396
|
-
static LogError(logger: ILogger, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
397
|
-
static LogError(logger: ILogger, exception: Exception, message: string, ...args: unknown[]): void;
|
|
398
|
-
static LogError(logger: ILogger, message: string, ...args: unknown[]): void;
|
|
399
|
-
static LogInformation(logger: ILogger, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
400
|
-
static LogInformation(logger: ILogger, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
401
|
-
static LogInformation(logger: ILogger, exception: Exception, message: string, ...args: unknown[]): void;
|
|
402
|
-
static LogInformation(logger: ILogger, message: string, ...args: unknown[]): void;
|
|
403
|
-
static LogTrace(logger: ILogger, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
404
|
-
static LogTrace(logger: ILogger, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
405
|
-
static LogTrace(logger: ILogger, exception: Exception, message: string, ...args: unknown[]): void;
|
|
406
|
-
static LogTrace(logger: ILogger, message: string, ...args: unknown[]): void;
|
|
407
|
-
static LogWarning(logger: ILogger, eventId: EventId, exception: Exception, message: string, ...args: unknown[]): void;
|
|
408
|
-
static LogWarning(logger: ILogger, eventId: EventId, message: string, ...args: unknown[]): void;
|
|
409
|
-
static LogWarning(logger: ILogger, exception: Exception, message: string, ...args: unknown[]): void;
|
|
410
|
-
static LogWarning(logger: ILogger, message: string, ...args: unknown[]): void;
|
|
385
|
+
static BeginScope(logger: ILogger, messageFormat: string, ...args: (unknown | null)[]): IDisposable | null;
|
|
386
|
+
static Log(logger: ILogger, logLevel: LogLevel, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
387
|
+
static Log(logger: ILogger, logLevel: LogLevel, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
388
|
+
static Log(logger: ILogger, logLevel: LogLevel, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
389
|
+
static Log(logger: ILogger, logLevel: LogLevel, message: string | null, ...args: (unknown | null)[]): void;
|
|
390
|
+
static LogCritical(logger: ILogger, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
391
|
+
static LogCritical(logger: ILogger, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
392
|
+
static LogCritical(logger: ILogger, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
393
|
+
static LogCritical(logger: ILogger, message: string | null, ...args: (unknown | null)[]): void;
|
|
394
|
+
static LogDebug(logger: ILogger, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
395
|
+
static LogDebug(logger: ILogger, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
396
|
+
static LogDebug(logger: ILogger, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
397
|
+
static LogDebug(logger: ILogger, message: string | null, ...args: (unknown | null)[]): void;
|
|
398
|
+
static LogError(logger: ILogger, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
399
|
+
static LogError(logger: ILogger, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
400
|
+
static LogError(logger: ILogger, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
401
|
+
static LogError(logger: ILogger, message: string | null, ...args: (unknown | null)[]): void;
|
|
402
|
+
static LogInformation(logger: ILogger, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
403
|
+
static LogInformation(logger: ILogger, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
404
|
+
static LogInformation(logger: ILogger, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
405
|
+
static LogInformation(logger: ILogger, message: string | null, ...args: (unknown | null)[]): void;
|
|
406
|
+
static LogTrace(logger: ILogger, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
407
|
+
static LogTrace(logger: ILogger, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
408
|
+
static LogTrace(logger: ILogger, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
409
|
+
static LogTrace(logger: ILogger, message: string | null, ...args: (unknown | null)[]): void;
|
|
410
|
+
static LogWarning(logger: ILogger, eventId: EventId, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
411
|
+
static LogWarning(logger: ILogger, eventId: EventId, message: string | null, ...args: (unknown | null)[]): void;
|
|
412
|
+
static LogWarning(logger: ILogger, exception: Exception | null, message: string | null, ...args: (unknown | null)[]): void;
|
|
413
|
+
static LogWarning(logger: ILogger, message: string | null, ...args: (unknown | null)[]): void;
|
|
411
414
|
}
|
|
412
415
|
|
|
413
416
|
|
|
@@ -415,34 +418,34 @@ export type LoggerExtensions = LoggerExtensions$instance;
|
|
|
415
418
|
|
|
416
419
|
export abstract class LoggerFactoryExtensions$instance {
|
|
417
420
|
static CreateLogger(factory: ILoggerFactory, type: Type): ILogger;
|
|
418
|
-
static CreateLogger<T>(factory: ILoggerFactory): ILogger_1<T>;
|
|
421
|
+
static CreateLogger<T extends unknown>(factory: ILoggerFactory): ILogger_1<T>;
|
|
419
422
|
}
|
|
420
423
|
|
|
421
424
|
|
|
422
425
|
export type LoggerFactoryExtensions = LoggerFactoryExtensions$instance;
|
|
423
426
|
|
|
424
427
|
export abstract class LoggerMessage$instance {
|
|
425
|
-
static Define<T1>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_3<ILogger, T1, Exception |
|
|
426
|
-
static Define<T1, T2>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_4<ILogger, T1, T2, Exception |
|
|
427
|
-
static Define<T1, T2, T3>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_5<ILogger, T1, T2, T3, Exception |
|
|
428
|
-
static Define<T1, T2, T3, T4>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_6<ILogger, T1, T2, T3, T4, Exception |
|
|
429
|
-
static Define<T1, T2, T3, T4, T5>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_7<ILogger, T1, T2, T3, T4, T5, Exception |
|
|
430
|
-
static Define<T1, T2, T3, T4, T5, T6>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_8<ILogger, T1, T2, T3, T4, T5, T6, Exception |
|
|
431
|
-
static Define(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions): Action_2<ILogger, Exception |
|
|
432
|
-
static Define<T1>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_3<ILogger, T1, Exception |
|
|
433
|
-
static Define<T1, T2>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_4<ILogger, T1, T2, Exception |
|
|
434
|
-
static Define<T1, T2, T3>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_5<ILogger, T1, T2, T3, Exception |
|
|
435
|
-
static Define<T1, T2, T3, T4>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_6<ILogger, T1, T2, T3, T4, Exception |
|
|
436
|
-
static Define<T1, T2, T3, T4, T5>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_7<ILogger, T1, T2, T3, T4, T5, Exception |
|
|
437
|
-
static Define<T1, T2, T3, T4, T5, T6>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_8<ILogger, T1, T2, T3, T4, T5, T6, Exception |
|
|
438
|
-
static Define(logLevel: LogLevel, eventId: EventId, formatString: string): Action_2<ILogger, Exception |
|
|
439
|
-
static DefineScope<T1>(formatString: string): Func_3<ILogger, T1, IDisposable |
|
|
440
|
-
static DefineScope<T1, T2>(formatString: string): Func_4<ILogger, T1, T2, IDisposable |
|
|
441
|
-
static DefineScope<T1, T2, T3>(formatString: string): Func_5<ILogger, T1, T2, T3, IDisposable |
|
|
442
|
-
static DefineScope<T1, T2, T3, T4>(formatString: string): Func_6<ILogger, T1, T2, T3, T4, IDisposable |
|
|
443
|
-
static DefineScope<T1, T2, T3, T4, T5>(formatString: string): Func_7<ILogger, T1, T2, T3, T4, T5, IDisposable |
|
|
444
|
-
static DefineScope<T1, T2, T3, T4, T5, T6>(formatString: string): Func_8<ILogger, T1, T2, T3, T4, T5, T6, IDisposable |
|
|
445
|
-
static DefineScope(formatString: string): Func_2<ILogger, IDisposable |
|
|
428
|
+
static Define<T1 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_3<ILogger, T1, Exception | null>;
|
|
429
|
+
static Define<T1 extends unknown, T2 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_4<ILogger, T1, T2, Exception | null>;
|
|
430
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_5<ILogger, T1, T2, T3, Exception | null>;
|
|
431
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_6<ILogger, T1, T2, T3, T4, Exception | null>;
|
|
432
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown, T5 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_7<ILogger, T1, T2, T3, T4, T5, Exception | null>;
|
|
433
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown, T5 extends unknown, T6 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_8<ILogger, T1, T2, T3, T4, T5, T6, Exception | null>;
|
|
434
|
+
static Define(logLevel: LogLevel, eventId: EventId, formatString: string, options: LogDefineOptions | null): Action_2<ILogger, Exception | null>;
|
|
435
|
+
static Define<T1 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_3<ILogger, T1, Exception | null>;
|
|
436
|
+
static Define<T1 extends unknown, T2 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_4<ILogger, T1, T2, Exception | null>;
|
|
437
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_5<ILogger, T1, T2, T3, Exception | null>;
|
|
438
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_6<ILogger, T1, T2, T3, T4, Exception | null>;
|
|
439
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown, T5 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_7<ILogger, T1, T2, T3, T4, T5, Exception | null>;
|
|
440
|
+
static Define<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown, T5 extends unknown, T6 extends unknown>(logLevel: LogLevel, eventId: EventId, formatString: string): Action_8<ILogger, T1, T2, T3, T4, T5, T6, Exception | null>;
|
|
441
|
+
static Define(logLevel: LogLevel, eventId: EventId, formatString: string): Action_2<ILogger, Exception | null>;
|
|
442
|
+
static DefineScope<T1 extends unknown>(formatString: string): Func_3<ILogger, T1, IDisposable | null>;
|
|
443
|
+
static DefineScope<T1 extends unknown, T2 extends unknown>(formatString: string): Func_4<ILogger, T1, T2, IDisposable | null>;
|
|
444
|
+
static DefineScope<T1 extends unknown, T2 extends unknown, T3 extends unknown>(formatString: string): Func_5<ILogger, T1, T2, T3, IDisposable | null>;
|
|
445
|
+
static DefineScope<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown>(formatString: string): Func_6<ILogger, T1, T2, T3, T4, IDisposable | null>;
|
|
446
|
+
static DefineScope<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown, T5 extends unknown>(formatString: string): Func_7<ILogger, T1, T2, T3, T4, T5, IDisposable | null>;
|
|
447
|
+
static DefineScope<T1 extends unknown, T2 extends unknown, T3 extends unknown, T4 extends unknown, T5 extends unknown, T6 extends unknown>(formatString: string): Func_8<ILogger, T1, T2, T3, T4, T5, T6, IDisposable | null>;
|
|
448
|
+
static DefineScope(formatString: string): Func_2<ILogger, IDisposable | null>;
|
|
446
449
|
}
|
|
447
450
|
|
|
448
451
|
|
|
@@ -756,7 +756,10 @@
|
|
|
756
756
|
"isLiteral": false,
|
|
757
757
|
"visibility": "Public",
|
|
758
758
|
"declaringClrType": "Microsoft.Extensions.Logging.Abstractions.NullLogger\u00601",
|
|
759
|
-
"declaringAssemblyName": "Microsoft.Extensions.Logging.Abstractions"
|
|
759
|
+
"declaringAssemblyName": "Microsoft.Extensions.Logging.Abstractions",
|
|
760
|
+
"emitSemantics": {
|
|
761
|
+
"callableStaticAccessorKind": "field"
|
|
762
|
+
}
|
|
760
763
|
}
|
|
761
764
|
],
|
|
762
765
|
"events": [],
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Logging.Abstractions
|
|
3
3
|
// Assembly: Microsoft.Extensions.Logging.Abstractions
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
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
|
// Import types from other namespaces
|
|
9
10
|
import * as Microsoft_Extensions_Logging_Internal from "../../Microsoft.Extensions.Logging/internal/index.js";
|
|
@@ -22,24 +23,24 @@ export interface IBufferedLogger$instance {
|
|
|
22
23
|
|
|
23
24
|
export type IBufferedLogger = IBufferedLogger$instance;
|
|
24
25
|
|
|
25
|
-
export interface LogEntry_1$instance<TState> {
|
|
26
|
+
export interface LogEntry_1$instance<TState extends unknown> {
|
|
26
27
|
readonly __tsonic_type_Microsoft_Extensions_Logging_Abstractions_LogEntry_1: never;
|
|
27
28
|
|
|
28
29
|
readonly Category: string;
|
|
29
30
|
readonly EventId: EventId;
|
|
30
|
-
readonly Exception: Exception |
|
|
31
|
-
readonly Formatter: Func_3<TState, Exception |
|
|
31
|
+
readonly Exception: Exception | null;
|
|
32
|
+
readonly Formatter: Func_3<TState, Exception | null, System_Internal.String>;
|
|
32
33
|
readonly LogLevel: LogLevel;
|
|
33
34
|
readonly State: TState;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
export const LogEntry_1: {
|
|
38
|
-
new<TState>(logLevel: LogLevel, category: string, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): LogEntry_1<TState>;
|
|
39
|
+
new<TState extends unknown>(logLevel: LogLevel, category: string, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): LogEntry_1<TState>;
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
export type LogEntry_1<TState> = LogEntry_1$instance<TState>;
|
|
43
|
+
export type LogEntry_1<TState extends unknown> = LogEntry_1$instance<TState>;
|
|
43
44
|
|
|
44
45
|
export interface BufferedLogRecord$instance {
|
|
45
46
|
readonly __tsonic_type_Microsoft_Extensions_Logging_Abstractions_BufferedLogRecord: never;
|
|
@@ -48,11 +49,11 @@ export interface BufferedLogRecord$instance {
|
|
|
48
49
|
readonly ActivityTraceId: Nullable_1<ActivityTraceId>;
|
|
49
50
|
readonly Attributes: IReadOnlyList_1<KeyValuePair_2<System_Internal.String, unknown>>;
|
|
50
51
|
readonly EventId: EventId;
|
|
51
|
-
readonly Exception: string |
|
|
52
|
-
readonly FormattedMessage: string |
|
|
52
|
+
readonly Exception: string | null;
|
|
53
|
+
readonly FormattedMessage: string | null;
|
|
53
54
|
readonly LogLevel: LogLevel;
|
|
54
55
|
readonly ManagedThreadId: Nullable_1<System_Internal.Int32>;
|
|
55
|
-
readonly MessageTemplate: string |
|
|
56
|
+
readonly MessageTemplate: string | null;
|
|
56
57
|
readonly Timestamp: DateTimeOffset;
|
|
57
58
|
}
|
|
58
59
|
|
|
@@ -68,9 +69,9 @@ export interface NullLogger$instance extends Microsoft_Extensions_Logging_Intern
|
|
|
68
69
|
|
|
69
70
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILogger: never;
|
|
70
71
|
|
|
71
|
-
BeginScope<TState>(state: TState): IDisposable;
|
|
72
|
+
BeginScope<TState extends unknown>(state: TState): IDisposable;
|
|
72
73
|
IsEnabled(logLevel: LogLevel): boolean;
|
|
73
|
-
Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): void;
|
|
74
|
+
Log<TState extends unknown>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
|
|
@@ -86,29 +87,29 @@ export interface __NullLogger$views {
|
|
|
86
87
|
export type NullLogger = NullLogger$instance & __NullLogger$views;
|
|
87
88
|
|
|
88
89
|
|
|
89
|
-
export interface NullLogger_1$instance<T> extends ILogger_1<T> {
|
|
90
|
+
export interface NullLogger_1$instance<T extends unknown> extends ILogger_1<T>, Microsoft_Extensions_Logging_Internal.ILogger_1$instance<T> {
|
|
90
91
|
readonly __tsonic_type_Microsoft_Extensions_Logging_Abstractions_NullLogger_1: never;
|
|
91
92
|
|
|
92
93
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILogger: never;
|
|
93
94
|
readonly __tsonic_iface_Microsoft_Extensions_Logging_ILogger_1: never;
|
|
94
95
|
|
|
95
|
-
BeginScope<TState>(state: TState): IDisposable;
|
|
96
|
+
BeginScope<TState extends unknown>(state: TState): IDisposable;
|
|
96
97
|
IsEnabled(logLevel: LogLevel): boolean;
|
|
97
|
-
Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): void;
|
|
98
|
+
Log<TState extends unknown>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
export const NullLogger_1: {
|
|
102
|
-
new<T>(): NullLogger_1<T>;
|
|
103
|
-
readonly Instance: unknown
|
|
103
|
+
new<T extends unknown>(): NullLogger_1<T>;
|
|
104
|
+
readonly Instance: <T extends unknown>() => NullLogger_1<T>;
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
|
|
107
|
-
export interface __NullLogger_1$views<T> {
|
|
108
|
+
export interface __NullLogger_1$views<T extends unknown> {
|
|
108
109
|
As_ILogger(): Microsoft_Extensions_Logging_Internal.ILogger$instance;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
export type NullLogger_1<T> = NullLogger_1$instance<T> & __NullLogger_1$views<T>;
|
|
112
|
+
export type NullLogger_1<T extends unknown> = NullLogger_1$instance<T> & __NullLogger_1$views<T>;
|
|
112
113
|
|
|
113
114
|
|
|
114
115
|
export interface NullLoggerFactory$instance extends Microsoft_Extensions_Logging_Internal.ILoggerFactory$instance {
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Logging.Abstractions/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 { EventId, ILogger, ILogger_1, ILoggerFactory, ILoggerProvider, LogLevel } from './Microsoft.Extensions.Logging/internal/index.js';
|
|
10
14
|
import type { IEnumerable, IReadOnlyList, KeyValuePair } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
@@ -26,8 +30,8 @@ declare const __unspecified: unique symbol;
|
|
|
26
30
|
export type __ = typeof __unspecified;
|
|
27
31
|
|
|
28
32
|
export type NullLogger<
|
|
29
|
-
T1 = __,
|
|
33
|
+
T1 extends unknown | __ = __,
|
|
30
34
|
> =
|
|
31
35
|
[T1] extends [__] ? Internal.NullLogger :
|
|
32
|
-
Internal.NullLogger_1<T1
|
|
36
|
+
[T1] extends [unknown] ? Internal.NullLogger_1<T1> : never;
|
|
33
37
|
|