@tsonic/dotnet 10.0.39 → 10.0.41
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/Internal/internal/index.d.ts +4 -3
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
- package/Microsoft.Win32/internal/index.d.ts +19 -18
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
- package/README.md +76 -104
- package/System/bindings.json +1520 -2039
- package/System/internal/index.d.ts +1549 -1602
- package/System.Buffers/bindings.json +12 -3
- package/System.Buffers/internal/index.d.ts +12 -14
- package/System.Buffers.Binary/internal/index.d.ts +2 -4
- package/System.Buffers.Text/internal/index.d.ts +2 -4
- package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
- package/System.Collections/internal/index.d.ts +129 -131
- package/System.Collections.Concurrent/bindings.json +218 -218
- package/System.Collections.Concurrent/internal/index.d.ts +34 -36
- package/System.Collections.Frozen/bindings.json +413 -611
- package/System.Collections.Frozen/internal/index.d.ts +81 -97
- package/System.Collections.Frozen.d.ts +14 -2
- package/System.Collections.Generic/bindings.json +9420 -14155
- package/System.Collections.Generic/internal/index.d.ts +547 -758
- package/System.Collections.Generic.d.ts +1 -1
- package/System.Collections.Immutable/bindings.json +6000 -9080
- package/System.Collections.Immutable/internal/index.d.ts +265 -354
- package/System.Collections.Immutable.d.ts +49 -12
- package/System.Collections.ObjectModel/bindings.json +132 -654
- package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
- package/System.Collections.Specialized/bindings.json +0 -123
- package/System.Collections.Specialized/internal/index.d.ts +88 -101
- package/System.ComponentModel/bindings.json +163 -102
- package/System.ComponentModel/internal/index.d.ts +618 -608
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
- package/System.ComponentModel.Design/bindings.json +22 -292
- package/System.ComponentModel.Design/internal/index.d.ts +101 -109
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
- package/System.ComponentModel.d.ts +1 -0
- package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
- package/System.Data/bindings.json +4 -1
- package/System.Data/internal/index.d.ts +351 -350
- package/System.Data.Common/internal/index.d.ts +151 -152
- package/System.Data.SqlTypes/internal/index.d.ts +68 -67
- package/System.Diagnostics/bindings.json +7044 -7249
- package/System.Diagnostics/internal/index.d.ts +446 -461
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
- package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
- package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
- package/System.Diagnostics.Metrics.d.ts +1 -1
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
- package/System.Diagnostics.Tracing/bindings.json +81 -21
- package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
- package/System.Diagnostics.Tracing.d.ts +2 -1
- package/System.Drawing/internal/index.d.ts +76 -75
- package/System.Dynamic/internal/index.d.ts +55 -57
- package/System.Formats.Asn1/bindings.json +48 -69
- package/System.Formats.Asn1/internal/index.d.ts +21 -28
- package/System.Formats.Tar/internal/index.d.ts +8 -7
- package/System.Globalization/internal/index.d.ts +40 -42
- package/System.IO/internal/index.d.ts +187 -189
- package/System.IO.Compression/internal/index.d.ts +29 -31
- package/System.IO.Enumeration/bindings.json +250 -250
- package/System.IO.Enumeration/internal/index.d.ts +15 -17
- package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
- package/System.IO.Pipelines/internal/index.d.ts +15 -17
- package/System.IO.Pipes/internal/index.d.ts +8 -7
- package/System.Linq/internal/index.d.ts +223 -225
- package/System.Linq.Expressions/internal/index.d.ts +205 -207
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
- package/System.Net/bindings.json +104 -104
- package/System.Net/internal/index.d.ts +279 -281
- package/System.Net.Cache/internal/index.d.ts +3 -2
- package/System.Net.Http/internal/index.d.ts +128 -130
- package/System.Net.Http.Headers/bindings.json +0 -204
- package/System.Net.Http.Headers/internal/index.d.ts +111 -127
- package/System.Net.Http.Json/internal/index.d.ts +67 -69
- package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
- package/System.Net.Mail/internal/index.d.ts +76 -78
- package/System.Net.Mime/internal/index.d.ts +11 -10
- package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
- package/System.Net.Quic/internal/index.d.ts +10 -9
- package/System.Net.Security/internal/index.d.ts +87 -89
- package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
- package/System.Net.Sockets/internal/index.d.ts +91 -93
- package/System.Net.WebSockets/internal/index.d.ts +47 -46
- package/System.Numerics/bindings.json +544 -116
- package/System.Numerics/internal/index.d.ts +110 -112
- package/System.Reflection/internal/index.d.ts +270 -272
- package/System.Reflection.Emit/internal/index.d.ts +114 -116
- package/System.Reflection.Metadata/bindings.json +166 -3169
- package/System.Reflection.Metadata/internal/index.d.ts +154 -361
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
- package/System.Reflection.PortableExecutable/bindings.json +58 -0
- package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
- package/System.Reflection.PortableExecutable.d.ts +1 -0
- package/System.Resources/internal/index.d.ts +33 -35
- package/System.Runtime/internal/index.d.ts +12 -11
- package/System.Runtime.CompilerServices/bindings.json +519 -717
- package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
- package/System.Runtime.CompilerServices.d.ts +14 -4
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
- package/System.Runtime.InteropServices/bindings.json +101 -101
- package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
- package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
- package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
- package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.Swift.d.ts +1 -1
- package/System.Runtime.Intrinsics/bindings.json +64 -16
- package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
- package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
- package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
- package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
- package/System.Runtime.Loader/bindings.json +48 -69
- package/System.Runtime.Loader/internal/index.d.ts +30 -34
- package/System.Runtime.Remoting/internal/index.d.ts +5 -4
- package/System.Runtime.Serialization/internal/index.d.ts +175 -177
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
- package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
- package/System.Runtime.Versioning/internal/index.d.ts +20 -19
- package/System.Security/internal/index.d.ts +64 -66
- package/System.Security.AccessControl/bindings.json +104 -0
- package/System.Security.AccessControl/internal/index.d.ts +59 -58
- package/System.Security.AccessControl.d.ts +6 -5
- package/System.Security.Authentication/internal/index.d.ts +7 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
- package/System.Security.Claims/internal/index.d.ts +45 -44
- package/System.Security.Cryptography/bindings.json +469 -469
- package/System.Security.Cryptography/internal/index.d.ts +269 -271
- package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
- package/System.Security.Permissions/internal/index.d.ts +5 -4
- package/System.Security.Policy/internal/index.d.ts +11 -10
- package/System.Security.Principal/internal/index.d.ts +28 -27
- package/System.Text/bindings.json +1562 -1562
- package/System.Text/internal/index.d.ts +119 -121
- package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
- package/System.Text.Json/bindings.json +0 -290
- package/System.Text.Json/internal/index.d.ts +135 -153
- package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
- package/System.Text.Json.Schema/internal/index.d.ts +9 -8
- package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
- package/System.Text.Json.Serialization.d.ts +1 -1
- package/System.Text.RegularExpressions/bindings.json +198 -402
- package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
- package/System.Text.Unicode/bindings.json +508 -508
- package/System.Text.Unicode/internal/index.d.ts +29 -31
- package/System.Threading/bindings.json +42 -42
- package/System.Threading/internal/index.d.ts +157 -159
- package/System.Threading.Channels/internal/index.d.ts +10 -12
- package/System.Threading.Tasks/bindings.json +4 -1
- package/System.Threading.Tasks/internal/index.d.ts +115 -114
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
- package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
- package/System.Timers/internal/index.d.ts +8 -7
- package/System.Transactions/internal/index.d.ts +31 -30
- package/System.Web/internal/index.d.ts +32 -31
- package/System.Windows.Input/internal/index.d.ts +5 -4
- package/System.Windows.Markup/internal/index.d.ts +3 -2
- package/System.Xml/internal/index.d.ts +383 -385
- package/System.Xml.Linq/internal/index.d.ts +103 -102
- package/System.Xml.Resolvers/internal/index.d.ts +10 -9
- package/System.Xml.Schema/bindings.json +76 -76
- package/System.Xml.Schema/internal/index.d.ts +233 -232
- package/System.Xml.Serialization/bindings.json +193 -0
- package/System.Xml.Serialization/internal/index.d.ts +277 -245
- package/System.Xml.Serialization.d.ts +2 -0
- package/System.Xml.XPath/internal/index.d.ts +46 -45
- package/System.Xml.Xsl/internal/index.d.ts +53 -52
- package/System.Xml.Xsl.Runtime/bindings.json +4 -1
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
- package/System.d.ts +2 -2
- package/__internal/extensions/index.d.ts +517 -515
- package/families.json +63 -7
- package/package.json +2 -2
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Net
|
|
3
3
|
// Assembly: System.Net.HttpListener, System.Net.NameResolution, System.Net.Primitives, System.Net.Requests, System.Net.WebClient, System.Net.WebHeaderCollection, System.Net.WebProxy, System.Private.CoreLib
|
|
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 { JsValue, 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
|
-
// Import support types from @tsonic/core
|
|
9
|
-
import type { ptr } from "@tsonic/core/types.js";
|
|
10
8
|
|
|
11
9
|
// Import types from other namespaces
|
|
12
10
|
import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
|
|
@@ -298,43 +296,40 @@ export type AuthenticationSchemeSelector = (httpRequest: HttpListenerRequest) =>
|
|
|
298
296
|
export type BindIPEndPoint = (servicePoint: ServicePoint, remoteEndPoint: IPEndPoint, retryCount: int) => IPEndPoint;
|
|
299
297
|
|
|
300
298
|
|
|
301
|
-
export type DownloadDataCompletedEventHandler = (sender:
|
|
299
|
+
export type DownloadDataCompletedEventHandler = (sender: JsValue, e: DownloadDataCompletedEventArgs) => void;
|
|
302
300
|
|
|
303
301
|
|
|
304
|
-
export type DownloadProgressChangedEventHandler = (sender:
|
|
302
|
+
export type DownloadProgressChangedEventHandler = (sender: JsValue, e: DownloadProgressChangedEventArgs) => void;
|
|
305
303
|
|
|
306
304
|
|
|
307
|
-
export type DownloadStringCompletedEventHandler = (sender:
|
|
305
|
+
export type DownloadStringCompletedEventHandler = (sender: JsValue, e: DownloadStringCompletedEventArgs) => void;
|
|
308
306
|
|
|
309
307
|
|
|
310
308
|
export type HttpContinueDelegate = (StatusCode: int, httpHeaders: WebHeaderCollection) => void;
|
|
311
309
|
|
|
312
310
|
|
|
313
|
-
export type
|
|
314
|
-
|
|
311
|
+
export type OpenReadCompletedEventHandler = (sender: JsValue, e: OpenReadCompletedEventArgs) => void;
|
|
315
312
|
|
|
316
|
-
export type OpenReadCompletedEventHandler = (sender: unknown, e: OpenReadCompletedEventArgs) => void;
|
|
317
313
|
|
|
314
|
+
export type OpenWriteCompletedEventHandler = (sender: JsValue, e: OpenWriteCompletedEventArgs) => void;
|
|
318
315
|
|
|
319
|
-
export type OpenWriteCompletedEventHandler = (sender: unknown, e: OpenWriteCompletedEventArgs) => void;
|
|
320
316
|
|
|
317
|
+
export type UploadDataCompletedEventHandler = (sender: JsValue, e: UploadDataCompletedEventArgs) => void;
|
|
321
318
|
|
|
322
|
-
export type UploadDataCompletedEventHandler = (sender: unknown, e: UploadDataCompletedEventArgs) => void;
|
|
323
319
|
|
|
320
|
+
export type UploadFileCompletedEventHandler = (sender: JsValue, e: UploadFileCompletedEventArgs) => void;
|
|
324
321
|
|
|
325
|
-
export type UploadFileCompletedEventHandler = (sender: unknown, e: UploadFileCompletedEventArgs) => void;
|
|
326
322
|
|
|
323
|
+
export type UploadProgressChangedEventHandler = (sender: JsValue, e: UploadProgressChangedEventArgs) => void;
|
|
327
324
|
|
|
328
|
-
export type UploadProgressChangedEventHandler = (sender: unknown, e: UploadProgressChangedEventArgs) => void;
|
|
329
325
|
|
|
326
|
+
export type UploadStringCompletedEventHandler = (sender: JsValue, e: UploadStringCompletedEventArgs) => void;
|
|
330
327
|
|
|
331
|
-
export type UploadStringCompletedEventHandler = (sender: unknown, e: UploadStringCompletedEventArgs) => void;
|
|
332
328
|
|
|
329
|
+
export type UploadValuesCompletedEventHandler = (sender: JsValue, e: UploadValuesCompletedEventArgs) => void;
|
|
333
330
|
|
|
334
|
-
export type UploadValuesCompletedEventHandler = (sender: unknown, e: UploadValuesCompletedEventArgs) => void;
|
|
335
331
|
|
|
336
|
-
|
|
337
|
-
export type WriteStreamClosedEventHandler = (sender: unknown, e: WriteStreamClosedEventArgs) => void;
|
|
332
|
+
export type WriteStreamClosedEventHandler = (sender: JsValue, e: WriteStreamClosedEventArgs) => void;
|
|
338
333
|
|
|
339
334
|
|
|
340
335
|
export interface IAuthenticationModule$instance {
|
|
@@ -342,8 +337,8 @@ export interface IAuthenticationModule$instance {
|
|
|
342
337
|
|
|
343
338
|
readonly CanPreAuthenticate: boolean;
|
|
344
339
|
readonly AuthenticationType: string;
|
|
345
|
-
Authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization |
|
|
346
|
-
PreAuthenticate(request: WebRequest, credentials: ICredentials): Authorization |
|
|
340
|
+
Authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization | null;
|
|
341
|
+
PreAuthenticate(request: WebRequest, credentials: ICredentials): Authorization | null;
|
|
347
342
|
}
|
|
348
343
|
|
|
349
344
|
|
|
@@ -379,9 +374,9 @@ export type ICredentialsByHost = ICredentialsByHost$instance;
|
|
|
379
374
|
export interface IWebProxy$instance {
|
|
380
375
|
readonly __tsonic_iface_System_Net_IWebProxy: never;
|
|
381
376
|
|
|
382
|
-
get Credentials(): ICredentials |
|
|
383
|
-
set Credentials(value: ICredentials |
|
|
384
|
-
GetProxy(destination: Uri): Uri |
|
|
377
|
+
get Credentials(): ICredentials | null;
|
|
378
|
+
set Credentials(value: ICredentials | null);
|
|
379
|
+
GetProxy(destination: Uri): Uri | null;
|
|
385
380
|
IsBypassed(host: Uri): boolean;
|
|
386
381
|
}
|
|
387
382
|
|
|
@@ -423,7 +418,7 @@ export interface IPNetwork$instance extends System_Internal.ISpanParsable_1$inst
|
|
|
423
418
|
readonly PrefixLength: int;
|
|
424
419
|
Contains(address: IPAddress): boolean;
|
|
425
420
|
Equals(other: IPNetwork): boolean;
|
|
426
|
-
Equals(obj:
|
|
421
|
+
Equals(obj: JsValue | null): boolean;
|
|
427
422
|
GetHashCode(): int;
|
|
428
423
|
ToString(): string;
|
|
429
424
|
TryFormat(destination: Span_1<System_Internal.Char>, charsWritten: int): boolean;
|
|
@@ -438,7 +433,7 @@ export const IPNetwork: {
|
|
|
438
433
|
Parse(s: string): IPNetwork;
|
|
439
434
|
TryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, result: IPNetwork): boolean;
|
|
440
435
|
TryParse(s: ReadOnlySpan_1<System_Internal.Char>, result: IPNetwork): boolean;
|
|
441
|
-
TryParse(s: string, result: IPNetwork): boolean;
|
|
436
|
+
TryParse(s: string | null, result: IPNetwork): boolean;
|
|
442
437
|
};
|
|
443
438
|
|
|
444
439
|
|
|
@@ -466,12 +461,12 @@ export interface AuthenticationManager$instance {
|
|
|
466
461
|
|
|
467
462
|
|
|
468
463
|
export const AuthenticationManager: {
|
|
469
|
-
get CredentialPolicy(): ICredentialPolicy |
|
|
470
|
-
set CredentialPolicy(value: ICredentialPolicy |
|
|
464
|
+
get CredentialPolicy(): ICredentialPolicy | null;
|
|
465
|
+
set CredentialPolicy(value: ICredentialPolicy | null);
|
|
471
466
|
readonly CustomTargetNameDictionary: StringDictionary;
|
|
472
467
|
readonly RegisteredModules: IEnumerator;
|
|
473
|
-
Authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization |
|
|
474
|
-
PreAuthenticate(request: WebRequest, credentials: ICredentials): Authorization |
|
|
468
|
+
Authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization | null;
|
|
469
|
+
PreAuthenticate(request: WebRequest, credentials: ICredentials): Authorization | null;
|
|
475
470
|
Register(authenticationModule: IAuthenticationModule): void;
|
|
476
471
|
Unregister(authenticationModule: IAuthenticationModule): void;
|
|
477
472
|
Unregister(authenticationScheme: string): void;
|
|
@@ -484,18 +479,18 @@ export interface Authorization$instance {
|
|
|
484
479
|
readonly __tsonic_type_System_Net_Authorization: never;
|
|
485
480
|
|
|
486
481
|
Complete: boolean;
|
|
487
|
-
readonly ConnectionGroupId: string |
|
|
488
|
-
readonly Message: string |
|
|
482
|
+
readonly ConnectionGroupId: string | null;
|
|
483
|
+
readonly Message: string | null;
|
|
489
484
|
MutuallyAuthenticated: boolean;
|
|
490
|
-
get ProtectionRealm(): string[] |
|
|
491
|
-
set ProtectionRealm(value: string[] |
|
|
485
|
+
get ProtectionRealm(): string[] | null;
|
|
486
|
+
set ProtectionRealm(value: string[] | null);
|
|
492
487
|
}
|
|
493
488
|
|
|
494
489
|
|
|
495
490
|
export const Authorization: {
|
|
496
|
-
new(token: string): Authorization;
|
|
497
|
-
new(token: string, finished: boolean): Authorization;
|
|
498
|
-
new(token: string, finished: boolean, connectionGroupId: string): Authorization;
|
|
491
|
+
new(token: string | null): Authorization;
|
|
492
|
+
new(token: string | null, finished: boolean): Authorization;
|
|
493
|
+
new(token: string | null, finished: boolean, connectionGroupId: string | null): Authorization;
|
|
499
494
|
};
|
|
500
495
|
|
|
501
496
|
|
|
@@ -505,8 +500,8 @@ export interface Cookie$instance {
|
|
|
505
500
|
readonly __tsonic_type_System_Net_Cookie: never;
|
|
506
501
|
|
|
507
502
|
Comment: string;
|
|
508
|
-
get CommentUri(): Uri |
|
|
509
|
-
set CommentUri(value: Uri |
|
|
503
|
+
get CommentUri(): Uri | null;
|
|
504
|
+
set CommentUri(value: Uri | null);
|
|
510
505
|
Discard: boolean;
|
|
511
506
|
Domain: string;
|
|
512
507
|
Expired: boolean;
|
|
@@ -519,7 +514,7 @@ export interface Cookie$instance {
|
|
|
519
514
|
readonly TimeStamp: DateTime;
|
|
520
515
|
Value: string;
|
|
521
516
|
Version: int;
|
|
522
|
-
Equals(comparand:
|
|
517
|
+
Equals(comparand: JsValue | null): boolean;
|
|
523
518
|
GetHashCode(): int;
|
|
524
519
|
ToString(): string;
|
|
525
520
|
}
|
|
@@ -527,9 +522,9 @@ export interface Cookie$instance {
|
|
|
527
522
|
|
|
528
523
|
export const Cookie: {
|
|
529
524
|
new(): Cookie;
|
|
530
|
-
new(name: string, value: string): Cookie;
|
|
531
|
-
new(name: string, value: string, path: string): Cookie;
|
|
532
|
-
new(name: string, value: string, path: string, domain: string): Cookie;
|
|
525
|
+
new(name: string, value: string | null): Cookie;
|
|
526
|
+
new(name: string, value: string | null, path: string | null): Cookie;
|
|
527
|
+
new(name: string, value: string | null, path: string | null, domain: string | null): Cookie;
|
|
533
528
|
};
|
|
534
529
|
|
|
535
530
|
|
|
@@ -547,7 +542,7 @@ export interface CookieCollection$instance {
|
|
|
547
542
|
readonly Count: int;
|
|
548
543
|
readonly IsReadOnly: boolean;
|
|
549
544
|
readonly IsSynchronized: boolean;
|
|
550
|
-
readonly SyncRoot:
|
|
545
|
+
readonly SyncRoot: JsValue;
|
|
551
546
|
Add(cookie: Cookie): void;
|
|
552
547
|
Add(cookies: CookieCollection): void;
|
|
553
548
|
Clear(): void;
|
|
@@ -555,7 +550,7 @@ export interface CookieCollection$instance {
|
|
|
555
550
|
CopyTo(array: ClrArray, index: int): void;
|
|
556
551
|
CopyTo(array: Cookie[], index: int): void;
|
|
557
552
|
get_Item(index: int): Cookie;
|
|
558
|
-
get_Item(name: string): Cookie |
|
|
553
|
+
get_Item(name: string): Cookie | null;
|
|
559
554
|
GetEnumerator(): IEnumerator;
|
|
560
555
|
Remove(cookie: Cookie): boolean;
|
|
561
556
|
}
|
|
@@ -618,8 +613,8 @@ export interface CookieException$instance extends FormatException {
|
|
|
618
613
|
|
|
619
614
|
export const CookieException: {
|
|
620
615
|
new(): CookieException;
|
|
621
|
-
new(message: string): CookieException;
|
|
622
|
-
new(message: string, innerException: Exception): CookieException;
|
|
616
|
+
new(message: string | null): CookieException;
|
|
617
|
+
new(message: string | null, innerException: Exception | null): CookieException;
|
|
623
618
|
};
|
|
624
619
|
|
|
625
620
|
|
|
@@ -642,8 +637,8 @@ export interface CredentialCache$instance {
|
|
|
642
637
|
GetCredential(uriPrefix: Uri, authType: string): NetworkCredential;
|
|
643
638
|
GetCredential(host: string, port: int, authenticationType: string): NetworkCredential;
|
|
644
639
|
GetEnumerator(): IEnumerator;
|
|
645
|
-
Remove(uriPrefix: Uri, authType: string): void;
|
|
646
|
-
Remove(host: string, port: int, authenticationType: string): void;
|
|
640
|
+
Remove(uriPrefix: Uri | null, authType: string | null): void;
|
|
641
|
+
Remove(host: string | null, port: int, authenticationType: string | null): void;
|
|
647
642
|
}
|
|
648
643
|
|
|
649
644
|
|
|
@@ -669,7 +664,7 @@ export interface DnsEndPoint$instance extends EndPoint {
|
|
|
669
664
|
readonly AddressFamily: AddressFamily;
|
|
670
665
|
readonly Host: string;
|
|
671
666
|
readonly Port: int;
|
|
672
|
-
Equals(comparand:
|
|
667
|
+
Equals(comparand: JsValue | null): boolean;
|
|
673
668
|
GetHashCode(): int;
|
|
674
669
|
ToString(): string;
|
|
675
670
|
}
|
|
@@ -743,24 +738,24 @@ export interface FileWebRequest$instance extends WebRequest$instance {
|
|
|
743
738
|
|
|
744
739
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
745
740
|
|
|
746
|
-
get ConnectionGroupName(): string |
|
|
747
|
-
set ConnectionGroupName(value: string |
|
|
741
|
+
get ConnectionGroupName(): string | null;
|
|
742
|
+
set ConnectionGroupName(value: string | null);
|
|
748
743
|
ContentLength: long;
|
|
749
|
-
get ContentType(): string |
|
|
750
|
-
set ContentType(value: string |
|
|
751
|
-
get Credentials(): ICredentials |
|
|
752
|
-
set Credentials(value: ICredentials |
|
|
744
|
+
get ContentType(): string | null;
|
|
745
|
+
set ContentType(value: string | null);
|
|
746
|
+
get Credentials(): ICredentials | null;
|
|
747
|
+
set Credentials(value: ICredentials | null);
|
|
753
748
|
readonly Headers: WebHeaderCollection;
|
|
754
749
|
Method: string;
|
|
755
750
|
PreAuthenticate: boolean;
|
|
756
|
-
get Proxy(): IWebProxy |
|
|
757
|
-
set Proxy(value: IWebProxy |
|
|
751
|
+
get Proxy(): IWebProxy | null;
|
|
752
|
+
set Proxy(value: IWebProxy | null);
|
|
758
753
|
readonly RequestUri: Uri;
|
|
759
754
|
Timeout: int;
|
|
760
755
|
UseDefaultCredentials: boolean;
|
|
761
756
|
Abort(): void;
|
|
762
|
-
BeginGetRequestStream(callback: AsyncCallback, state:
|
|
763
|
-
BeginGetResponse(callback: AsyncCallback, state:
|
|
757
|
+
BeginGetRequestStream(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
758
|
+
BeginGetResponse(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
764
759
|
EndGetRequestStream(asyncResult: IAsyncResult): Stream;
|
|
765
760
|
EndGetResponse(asyncResult: IAsyncResult): WebResponse;
|
|
766
761
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
@@ -816,27 +811,27 @@ export interface FtpWebRequest$instance extends WebRequest$instance, System_Runt
|
|
|
816
811
|
|
|
817
812
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
818
813
|
|
|
819
|
-
get CachePolicy(): RequestCachePolicy |
|
|
820
|
-
set CachePolicy(value: RequestCachePolicy |
|
|
814
|
+
get CachePolicy(): RequestCachePolicy | null;
|
|
815
|
+
set CachePolicy(value: RequestCachePolicy | null);
|
|
821
816
|
ClientCertificates: X509CertificateCollection;
|
|
822
|
-
get ConnectionGroupName(): string |
|
|
823
|
-
set ConnectionGroupName(value: string |
|
|
817
|
+
get ConnectionGroupName(): string | null;
|
|
818
|
+
set ConnectionGroupName(value: string | null);
|
|
824
819
|
ContentLength: long;
|
|
825
820
|
ContentOffset: long;
|
|
826
|
-
get ContentType(): string |
|
|
827
|
-
set ContentType(value: string |
|
|
828
|
-
get Credentials(): ICredentials |
|
|
829
|
-
set Credentials(value: ICredentials |
|
|
821
|
+
get ContentType(): string | null;
|
|
822
|
+
set ContentType(value: string | null);
|
|
823
|
+
get Credentials(): ICredentials | null;
|
|
824
|
+
set Credentials(value: ICredentials | null);
|
|
830
825
|
EnableSsl: boolean;
|
|
831
826
|
Headers: WebHeaderCollection;
|
|
832
827
|
KeepAlive: boolean;
|
|
833
828
|
Method: string;
|
|
834
829
|
PreAuthenticate: boolean;
|
|
835
|
-
get Proxy(): IWebProxy |
|
|
836
|
-
set Proxy(value: IWebProxy |
|
|
830
|
+
get Proxy(): IWebProxy | null;
|
|
831
|
+
set Proxy(value: IWebProxy | null);
|
|
837
832
|
ReadWriteTimeout: int;
|
|
838
|
-
get RenameTo(): string |
|
|
839
|
-
set RenameTo(value: string |
|
|
833
|
+
get RenameTo(): string | null;
|
|
834
|
+
set RenameTo(value: string | null);
|
|
840
835
|
readonly RequestUri: Uri;
|
|
841
836
|
readonly ServicePoint: ServicePoint;
|
|
842
837
|
Timeout: int;
|
|
@@ -844,8 +839,8 @@ export interface FtpWebRequest$instance extends WebRequest$instance, System_Runt
|
|
|
844
839
|
UseDefaultCredentials: boolean;
|
|
845
840
|
UsePassive: boolean;
|
|
846
841
|
Abort(): void;
|
|
847
|
-
BeginGetRequestStream(callback: AsyncCallback, state:
|
|
848
|
-
BeginGetResponse(callback: AsyncCallback, state:
|
|
842
|
+
BeginGetRequestStream(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
843
|
+
BeginGetResponse(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
849
844
|
EndGetRequestStream(asyncResult: IAsyncResult): Stream;
|
|
850
845
|
EndGetResponse(asyncResult: IAsyncResult): WebResponse;
|
|
851
846
|
GetRequestStream(): Stream;
|
|
@@ -854,8 +849,8 @@ export interface FtpWebRequest$instance extends WebRequest$instance, System_Runt
|
|
|
854
849
|
|
|
855
850
|
|
|
856
851
|
export const FtpWebRequest: {
|
|
857
|
-
get DefaultCachePolicy(): RequestCachePolicy |
|
|
858
|
-
set DefaultCachePolicy(value: RequestCachePolicy |
|
|
852
|
+
get DefaultCachePolicy(): RequestCachePolicy | null;
|
|
853
|
+
set DefaultCachePolicy(value: RequestCachePolicy | null);
|
|
859
854
|
};
|
|
860
855
|
|
|
861
856
|
|
|
@@ -872,16 +867,16 @@ export interface FtpWebResponse$instance extends WebResponse$instance, System_Ru
|
|
|
872
867
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
873
868
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
874
869
|
|
|
875
|
-
readonly BannerMessage: string |
|
|
870
|
+
readonly BannerMessage: string | null;
|
|
876
871
|
readonly ContentLength: long;
|
|
877
|
-
readonly ExitMessage: string |
|
|
872
|
+
readonly ExitMessage: string | null;
|
|
878
873
|
readonly Headers: WebHeaderCollection;
|
|
879
874
|
readonly LastModified: DateTime;
|
|
880
875
|
readonly ResponseUri: Uri;
|
|
881
876
|
readonly StatusCode: FtpStatusCode;
|
|
882
|
-
readonly StatusDescription: string |
|
|
877
|
+
readonly StatusDescription: string | null;
|
|
883
878
|
readonly SupportsHeaders: boolean;
|
|
884
|
-
readonly WelcomeMessage: string |
|
|
879
|
+
readonly WelcomeMessage: string | null;
|
|
885
880
|
Close(): void;
|
|
886
881
|
GetResponseStream(): Stream;
|
|
887
882
|
}
|
|
@@ -920,21 +915,21 @@ export interface HttpListener$instance extends System_Internal.IDisposable$insta
|
|
|
920
915
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
921
916
|
|
|
922
917
|
AuthenticationSchemes: AuthenticationSchemes;
|
|
923
|
-
get AuthenticationSchemeSelectorDelegate(): AuthenticationSchemeSelector |
|
|
924
|
-
set AuthenticationSchemeSelectorDelegate(value: AuthenticationSchemeSelector |
|
|
918
|
+
get AuthenticationSchemeSelectorDelegate(): AuthenticationSchemeSelector | null;
|
|
919
|
+
set AuthenticationSchemeSelectorDelegate(value: AuthenticationSchemeSelector | null);
|
|
925
920
|
readonly DefaultServiceNames: ServiceNameCollection;
|
|
926
921
|
ExtendedProtectionPolicy: ExtendedProtectionPolicy;
|
|
927
|
-
get ExtendedProtectionSelectorDelegate(): HttpListener_ExtendedProtectionSelector |
|
|
928
|
-
set ExtendedProtectionSelectorDelegate(value: HttpListener_ExtendedProtectionSelector |
|
|
922
|
+
get ExtendedProtectionSelectorDelegate(): HttpListener_ExtendedProtectionSelector | null;
|
|
923
|
+
set ExtendedProtectionSelectorDelegate(value: HttpListener_ExtendedProtectionSelector | null);
|
|
929
924
|
IgnoreWriteExceptions: boolean;
|
|
930
925
|
readonly IsListening: boolean;
|
|
931
926
|
readonly Prefixes: HttpListenerPrefixCollection;
|
|
932
|
-
get Realm(): string |
|
|
933
|
-
set Realm(value: string |
|
|
927
|
+
get Realm(): string | null;
|
|
928
|
+
set Realm(value: string | null);
|
|
934
929
|
readonly TimeoutManager: HttpListenerTimeoutManager;
|
|
935
930
|
UnsafeConnectionNtlmAuthentication: boolean;
|
|
936
931
|
Abort(): void;
|
|
937
|
-
BeginGetContext(callback: AsyncCallback, state:
|
|
932
|
+
BeginGetContext(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
938
933
|
Close(): void;
|
|
939
934
|
EndGetContext(asyncResult: IAsyncResult): HttpListenerContext;
|
|
940
935
|
GetContext(): HttpListenerContext;
|
|
@@ -957,6 +952,9 @@ export interface __HttpListener$views {
|
|
|
957
952
|
export type HttpListener = HttpListener$instance & __HttpListener$views;
|
|
958
953
|
|
|
959
954
|
|
|
955
|
+
export type HttpListener_ExtendedProtectionSelector = (request: HttpListenerRequest) => ExtendedProtectionPolicy;
|
|
956
|
+
|
|
957
|
+
|
|
960
958
|
export interface HttpListenerBasicIdentity$instance extends GenericIdentity {
|
|
961
959
|
readonly __tsonic_type_System_Net_HttpListenerBasicIdentity: never;
|
|
962
960
|
|
|
@@ -983,11 +981,11 @@ export interface HttpListenerContext$instance {
|
|
|
983
981
|
|
|
984
982
|
readonly Request: HttpListenerRequest;
|
|
985
983
|
readonly Response: HttpListenerResponse;
|
|
986
|
-
readonly User: IPrincipal |
|
|
987
|
-
AcceptWebSocketAsync(subProtocol: string): Task_1<HttpListenerWebSocketContext>;
|
|
988
|
-
AcceptWebSocketAsync(subProtocol: string, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
989
|
-
AcceptWebSocketAsync(subProtocol: string, receiveBufferSize: int, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
990
|
-
AcceptWebSocketAsync(subProtocol: string, receiveBufferSize: int, keepAliveInterval: TimeSpan, internalBuffer: ArraySegment_1<System_Internal.Byte>): Task_1<HttpListenerWebSocketContext>;
|
|
984
|
+
readonly User: IPrincipal | null;
|
|
985
|
+
AcceptWebSocketAsync(subProtocol: string | null): Task_1<HttpListenerWebSocketContext>;
|
|
986
|
+
AcceptWebSocketAsync(subProtocol: string | null, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
987
|
+
AcceptWebSocketAsync(subProtocol: string | null, receiveBufferSize: int, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
988
|
+
AcceptWebSocketAsync(subProtocol: string | null, receiveBufferSize: int, keepAliveInterval: TimeSpan, internalBuffer: ArraySegment_1<System_Internal.Byte>): Task_1<HttpListenerWebSocketContext>;
|
|
991
989
|
}
|
|
992
990
|
|
|
993
991
|
|
|
@@ -1056,39 +1054,39 @@ export type HttpListenerPrefixCollection = HttpListenerPrefixCollection$instance
|
|
|
1056
1054
|
export interface HttpListenerRequest$instance {
|
|
1057
1055
|
readonly __tsonic_type_System_Net_HttpListenerRequest: never;
|
|
1058
1056
|
|
|
1059
|
-
readonly AcceptTypes: string[] |
|
|
1057
|
+
readonly AcceptTypes: string[] | null;
|
|
1060
1058
|
readonly ClientCertificateError: int;
|
|
1061
1059
|
readonly ContentEncoding: Encoding;
|
|
1062
1060
|
readonly ContentLength64: long;
|
|
1063
|
-
readonly ContentType: string |
|
|
1061
|
+
readonly ContentType: string | null;
|
|
1064
1062
|
readonly Cookies: CookieCollection;
|
|
1065
1063
|
readonly HasEntityBody: boolean;
|
|
1066
1064
|
readonly Headers: NameValueCollection;
|
|
1067
|
-
readonly HttpMethod: string |
|
|
1065
|
+
readonly HttpMethod: string | null;
|
|
1068
1066
|
readonly InputStream: Stream;
|
|
1069
1067
|
readonly IsAuthenticated: boolean;
|
|
1070
1068
|
readonly IsLocal: boolean;
|
|
1071
1069
|
readonly IsSecureConnection: boolean;
|
|
1072
1070
|
readonly IsWebSocketRequest: boolean;
|
|
1073
1071
|
readonly KeepAlive: boolean;
|
|
1074
|
-
readonly LocalEndPoint: IPEndPoint |
|
|
1072
|
+
readonly LocalEndPoint: IPEndPoint | null;
|
|
1075
1073
|
readonly ProtocolVersion: Version;
|
|
1076
1074
|
readonly QueryString: NameValueCollection;
|
|
1077
|
-
readonly RawUrl: string |
|
|
1078
|
-
readonly RemoteEndPoint: IPEndPoint |
|
|
1075
|
+
readonly RawUrl: string | null;
|
|
1076
|
+
readonly RemoteEndPoint: IPEndPoint | null;
|
|
1079
1077
|
readonly RequestTraceIdentifier: Guid;
|
|
1080
|
-
readonly ServiceName: string |
|
|
1078
|
+
readonly ServiceName: string | null;
|
|
1081
1079
|
readonly TransportContext: TransportContext;
|
|
1082
|
-
readonly Url: Uri |
|
|
1083
|
-
readonly UrlReferrer: Uri |
|
|
1084
|
-
readonly UserAgent: string |
|
|
1080
|
+
readonly Url: Uri | null;
|
|
1081
|
+
readonly UrlReferrer: Uri | null;
|
|
1082
|
+
readonly UserAgent: string | null;
|
|
1085
1083
|
readonly UserHostAddress: string;
|
|
1086
1084
|
readonly UserHostName: string;
|
|
1087
|
-
readonly UserLanguages: string[] |
|
|
1088
|
-
BeginGetClientCertificate(requestCallback: AsyncCallback, state:
|
|
1089
|
-
EndGetClientCertificate(asyncResult: IAsyncResult): X509Certificate2 |
|
|
1090
|
-
GetClientCertificate(): X509Certificate2 |
|
|
1091
|
-
GetClientCertificateAsync(): Task_1<X509Certificate2 |
|
|
1085
|
+
readonly UserLanguages: string[] | null;
|
|
1086
|
+
BeginGetClientCertificate(requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
1087
|
+
EndGetClientCertificate(asyncResult: IAsyncResult): X509Certificate2 | null;
|
|
1088
|
+
GetClientCertificate(): X509Certificate2 | null;
|
|
1089
|
+
GetClientCertificateAsync(): Task_1<X509Certificate2 | null>;
|
|
1092
1090
|
}
|
|
1093
1091
|
|
|
1094
1092
|
|
|
@@ -1103,18 +1101,18 @@ export interface HttpListenerResponse$instance extends System_Internal.IDisposab
|
|
|
1103
1101
|
|
|
1104
1102
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1105
1103
|
|
|
1106
|
-
get ContentEncoding(): Encoding |
|
|
1107
|
-
set ContentEncoding(value: Encoding |
|
|
1104
|
+
get ContentEncoding(): Encoding | null;
|
|
1105
|
+
set ContentEncoding(value: Encoding | null);
|
|
1108
1106
|
ContentLength64: long;
|
|
1109
|
-
get ContentType(): string |
|
|
1110
|
-
set ContentType(value: string |
|
|
1107
|
+
get ContentType(): string | null;
|
|
1108
|
+
set ContentType(value: string | null);
|
|
1111
1109
|
Cookies: CookieCollection;
|
|
1112
1110
|
Headers: WebHeaderCollection;
|
|
1113
1111
|
KeepAlive: boolean;
|
|
1114
1112
|
readonly OutputStream: Stream;
|
|
1115
1113
|
ProtocolVersion: Version;
|
|
1116
|
-
get RedirectLocation(): string |
|
|
1117
|
-
set RedirectLocation(value: string |
|
|
1114
|
+
get RedirectLocation(): string | null;
|
|
1115
|
+
set RedirectLocation(value: string | null);
|
|
1118
1116
|
SendChunked: boolean;
|
|
1119
1117
|
StatusCode: int;
|
|
1120
1118
|
StatusDescription: string;
|
|
@@ -1164,31 +1162,31 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1164
1162
|
|
|
1165
1163
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1166
1164
|
|
|
1167
|
-
get Accept(): string |
|
|
1168
|
-
set Accept(value: string |
|
|
1165
|
+
get Accept(): string | null;
|
|
1166
|
+
set Accept(value: string | null);
|
|
1169
1167
|
readonly Address: Uri;
|
|
1170
1168
|
AllowAutoRedirect: boolean;
|
|
1171
1169
|
AllowReadStreamBuffering: boolean;
|
|
1172
1170
|
AllowWriteStreamBuffering: boolean;
|
|
1173
1171
|
AutomaticDecompression: DecompressionMethods;
|
|
1174
1172
|
ClientCertificates: X509CertificateCollection;
|
|
1175
|
-
get Connection(): string |
|
|
1176
|
-
set Connection(value: string |
|
|
1177
|
-
get ConnectionGroupName(): string |
|
|
1178
|
-
set ConnectionGroupName(value: string |
|
|
1173
|
+
get Connection(): string | null;
|
|
1174
|
+
set Connection(value: string | null);
|
|
1175
|
+
get ConnectionGroupName(): string | null;
|
|
1176
|
+
set ConnectionGroupName(value: string | null);
|
|
1179
1177
|
ContentLength: long;
|
|
1180
|
-
get ContentType(): string |
|
|
1181
|
-
set ContentType(value: string |
|
|
1182
|
-
get ContinueDelegate(): HttpContinueDelegate |
|
|
1183
|
-
set ContinueDelegate(value: HttpContinueDelegate |
|
|
1178
|
+
get ContentType(): string | null;
|
|
1179
|
+
set ContentType(value: string | null);
|
|
1180
|
+
get ContinueDelegate(): HttpContinueDelegate | null;
|
|
1181
|
+
set ContinueDelegate(value: HttpContinueDelegate | null);
|
|
1184
1182
|
ContinueTimeout: int;
|
|
1185
|
-
get CookieContainer(): CookieContainer |
|
|
1186
|
-
set CookieContainer(value: CookieContainer |
|
|
1187
|
-
get Credentials(): ICredentials |
|
|
1188
|
-
set Credentials(value: ICredentials |
|
|
1183
|
+
get CookieContainer(): CookieContainer | null;
|
|
1184
|
+
set CookieContainer(value: CookieContainer | null);
|
|
1185
|
+
get Credentials(): ICredentials | null;
|
|
1186
|
+
set Credentials(value: ICredentials | null);
|
|
1189
1187
|
Date: DateTime;
|
|
1190
|
-
get Expect(): string |
|
|
1191
|
-
set Expect(value: string |
|
|
1188
|
+
get Expect(): string | null;
|
|
1189
|
+
set Expect(value: string | null);
|
|
1192
1190
|
readonly HaveResponse: boolean;
|
|
1193
1191
|
Headers: WebHeaderCollection;
|
|
1194
1192
|
Host: string;
|
|
@@ -1196,30 +1194,30 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1196
1194
|
KeepAlive: boolean;
|
|
1197
1195
|
MaximumAutomaticRedirections: int;
|
|
1198
1196
|
MaximumResponseHeadersLength: int;
|
|
1199
|
-
get MediaType(): string |
|
|
1200
|
-
set MediaType(value: string |
|
|
1197
|
+
get MediaType(): string | null;
|
|
1198
|
+
set MediaType(value: string | null);
|
|
1201
1199
|
Method: string;
|
|
1202
1200
|
Pipelined: boolean;
|
|
1203
1201
|
PreAuthenticate: boolean;
|
|
1204
1202
|
ProtocolVersion: Version;
|
|
1205
|
-
get Proxy(): IWebProxy |
|
|
1206
|
-
set Proxy(value: IWebProxy |
|
|
1203
|
+
get Proxy(): IWebProxy | null;
|
|
1204
|
+
set Proxy(value: IWebProxy | null);
|
|
1207
1205
|
ReadWriteTimeout: int;
|
|
1208
|
-
get Referer(): string |
|
|
1209
|
-
set Referer(value: string |
|
|
1206
|
+
get Referer(): string | null;
|
|
1207
|
+
set Referer(value: string | null);
|
|
1210
1208
|
readonly RequestUri: Uri;
|
|
1211
1209
|
SendChunked: boolean;
|
|
1212
|
-
get ServerCertificateValidationCallback(): RemoteCertificateValidationCallback |
|
|
1213
|
-
set ServerCertificateValidationCallback(value: RemoteCertificateValidationCallback |
|
|
1210
|
+
get ServerCertificateValidationCallback(): RemoteCertificateValidationCallback | null;
|
|
1211
|
+
set ServerCertificateValidationCallback(value: RemoteCertificateValidationCallback | null);
|
|
1214
1212
|
readonly ServicePoint: ServicePoint;
|
|
1215
1213
|
readonly SupportsCookieContainer: boolean;
|
|
1216
1214
|
Timeout: int;
|
|
1217
|
-
get TransferEncoding(): string |
|
|
1218
|
-
set TransferEncoding(value: string |
|
|
1215
|
+
get TransferEncoding(): string | null;
|
|
1216
|
+
set TransferEncoding(value: string | null);
|
|
1219
1217
|
UnsafeAuthenticatedConnectionSharing: boolean;
|
|
1220
1218
|
UseDefaultCredentials: boolean;
|
|
1221
|
-
get UserAgent(): string |
|
|
1222
|
-
set UserAgent(value: string |
|
|
1219
|
+
get UserAgent(): string | null;
|
|
1220
|
+
set UserAgent(value: string | null);
|
|
1223
1221
|
Abort(): void;
|
|
1224
1222
|
AddRange(from: int, to: int): void;
|
|
1225
1223
|
AddRange(from: long, to: long): void;
|
|
@@ -1229,14 +1227,14 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1229
1227
|
AddRange(rangeSpecifier: string, from: long, to: long): void;
|
|
1230
1228
|
AddRange(rangeSpecifier: string, range: int): void;
|
|
1231
1229
|
AddRange(rangeSpecifier: string, range: long): void;
|
|
1232
|
-
BeginGetRequestStream(callback: AsyncCallback, state:
|
|
1233
|
-
BeginGetResponse(callback: AsyncCallback, state:
|
|
1234
|
-
EndGetRequestStream(asyncResult: IAsyncResult, context: TransportContext): Stream;
|
|
1230
|
+
BeginGetRequestStream(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
1231
|
+
BeginGetResponse(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
1232
|
+
EndGetRequestStream(asyncResult: IAsyncResult, context: TransportContext | null): Stream;
|
|
1235
1233
|
EndGetRequestStream(asyncResult: IAsyncResult): Stream;
|
|
1236
1234
|
EndGetResponse(asyncResult: IAsyncResult): WebResponse;
|
|
1237
1235
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
1238
1236
|
GetRequestStream(): Stream;
|
|
1239
|
-
GetRequestStream(context: TransportContext): Stream;
|
|
1237
|
+
GetRequestStream(context: TransportContext | null): Stream;
|
|
1240
1238
|
GetResponse(): WebResponse;
|
|
1241
1239
|
}
|
|
1242
1240
|
|
|
@@ -1244,8 +1242,8 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1244
1242
|
export const HttpWebRequest: (abstract new(serializationInfo: SerializationInfo, streamingContext: StreamingContext) => HttpWebRequest) & {
|
|
1245
1243
|
DefaultMaximumResponseHeadersLength: int;
|
|
1246
1244
|
DefaultMaximumErrorResponseLength: int;
|
|
1247
|
-
get DefaultCachePolicy(): RequestCachePolicy |
|
|
1248
|
-
set DefaultCachePolicy(value: RequestCachePolicy |
|
|
1245
|
+
get DefaultCachePolicy(): RequestCachePolicy | null;
|
|
1246
|
+
set DefaultCachePolicy(value: RequestCachePolicy | null);
|
|
1249
1247
|
};
|
|
1250
1248
|
|
|
1251
1249
|
|
|
@@ -1262,7 +1260,7 @@ export interface HttpWebResponse$instance extends WebResponse$instance {
|
|
|
1262
1260
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1263
1261
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1264
1262
|
|
|
1265
|
-
readonly CharacterSet: string |
|
|
1263
|
+
readonly CharacterSet: string | null;
|
|
1266
1264
|
readonly ContentEncoding: string;
|
|
1267
1265
|
readonly ContentLength: long;
|
|
1268
1266
|
readonly ContentType: string;
|
|
@@ -1318,7 +1316,7 @@ export interface IPAddress$instance extends System_Internal.ISpanParsable_1$inst
|
|
|
1318
1316
|
readonly IsIPv6Teredo: boolean;
|
|
1319
1317
|
readonly IsIPv6UniqueLocal: boolean;
|
|
1320
1318
|
ScopeId: long;
|
|
1321
|
-
Equals(comparand:
|
|
1319
|
+
Equals(comparand: JsValue | null): boolean;
|
|
1322
1320
|
GetAddressBytes(): byte[];
|
|
1323
1321
|
GetHashCode(): int;
|
|
1324
1322
|
MapToIPv4(): IPAddress;
|
|
@@ -1355,9 +1353,9 @@ export const IPAddress: {
|
|
|
1355
1353
|
Parse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>): IPAddress;
|
|
1356
1354
|
Parse(ipSpan: ReadOnlySpan_1<System_Internal.Char>): IPAddress;
|
|
1357
1355
|
Parse(ipString: string): IPAddress;
|
|
1358
|
-
TryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, result: IPAddress): boolean;
|
|
1359
|
-
TryParse(ipSpan: ReadOnlySpan_1<System_Internal.Char>, address: IPAddress): boolean;
|
|
1360
|
-
TryParse(ipString: string, address: IPAddress): boolean;
|
|
1356
|
+
TryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, result: IPAddress | null): boolean;
|
|
1357
|
+
TryParse(ipSpan: ReadOnlySpan_1<System_Internal.Char>, address: IPAddress | null): boolean;
|
|
1358
|
+
TryParse(ipString: string | null, address: IPAddress | null): boolean;
|
|
1361
1359
|
};
|
|
1362
1360
|
|
|
1363
1361
|
|
|
@@ -1383,7 +1381,7 @@ export interface IPEndPoint$instance extends EndPoint {
|
|
|
1383
1381
|
readonly AddressFamily: AddressFamily;
|
|
1384
1382
|
Port: int;
|
|
1385
1383
|
Create(socketAddress: SocketAddress): EndPoint;
|
|
1386
|
-
Equals(comparand:
|
|
1384
|
+
Equals(comparand: JsValue | null): boolean;
|
|
1387
1385
|
GetHashCode(): int;
|
|
1388
1386
|
Serialize(): SocketAddress;
|
|
1389
1387
|
ToString(): string;
|
|
@@ -1397,8 +1395,8 @@ export const IPEndPoint: {
|
|
|
1397
1395
|
readonly MaxPort: int;
|
|
1398
1396
|
Parse(s: ReadOnlySpan_1<System_Internal.Char>): IPEndPoint;
|
|
1399
1397
|
Parse(s: string): IPEndPoint;
|
|
1400
|
-
TryParse(s: ReadOnlySpan_1<System_Internal.Char>, result: IPEndPoint): boolean;
|
|
1401
|
-
TryParse(s: string, result: IPEndPoint): boolean;
|
|
1398
|
+
TryParse(s: ReadOnlySpan_1<System_Internal.Char>, result: IPEndPoint | null): boolean;
|
|
1399
|
+
TryParse(s: string, result: IPEndPoint | null): boolean;
|
|
1402
1400
|
};
|
|
1403
1401
|
|
|
1404
1402
|
|
|
@@ -1430,17 +1428,17 @@ export interface NetworkCredential$instance {
|
|
|
1430
1428
|
Password: string;
|
|
1431
1429
|
SecurePassword: SecureString;
|
|
1432
1430
|
UserName: string;
|
|
1433
|
-
GetCredential(uri: Uri, authenticationType: string): NetworkCredential;
|
|
1434
|
-
GetCredential(host: string, port: int, authenticationType: string): NetworkCredential;
|
|
1431
|
+
GetCredential(uri: Uri | null, authenticationType: string | null): NetworkCredential;
|
|
1432
|
+
GetCredential(host: string | null, port: int, authenticationType: string | null): NetworkCredential;
|
|
1435
1433
|
}
|
|
1436
1434
|
|
|
1437
1435
|
|
|
1438
1436
|
export const NetworkCredential: {
|
|
1439
1437
|
new(): NetworkCredential;
|
|
1440
|
-
new(userName: string, password: string): NetworkCredential;
|
|
1441
|
-
new(userName: string, password: string, domain: string): NetworkCredential;
|
|
1442
|
-
new(userName: string, password: SecureString): NetworkCredential;
|
|
1443
|
-
new(userName: string, password: SecureString, domain: string): NetworkCredential;
|
|
1438
|
+
new(userName: string | null, password: string | null): NetworkCredential;
|
|
1439
|
+
new(userName: string | null, password: string | null, domain: string | null): NetworkCredential;
|
|
1440
|
+
new(userName: string | null, password: SecureString | null): NetworkCredential;
|
|
1441
|
+
new(userName: string | null, password: SecureString | null, domain: string | null): NetworkCredential;
|
|
1444
1442
|
};
|
|
1445
1443
|
|
|
1446
1444
|
|
|
@@ -1502,7 +1500,7 @@ export interface ProtocolViolationException$instance extends InvalidOperationExc
|
|
|
1502
1500
|
|
|
1503
1501
|
export const ProtocolViolationException: {
|
|
1504
1502
|
new(): ProtocolViolationException;
|
|
1505
|
-
new(message: string): ProtocolViolationException;
|
|
1503
|
+
new(message: string | null): ProtocolViolationException;
|
|
1506
1504
|
};
|
|
1507
1505
|
|
|
1508
1506
|
|
|
@@ -1517,11 +1515,11 @@ export interface ServicePoint$instance {
|
|
|
1517
1515
|
readonly __tsonic_type_System_Net_ServicePoint: never;
|
|
1518
1516
|
|
|
1519
1517
|
readonly Address: Uri;
|
|
1520
|
-
get BindIPEndPointDelegate(): BindIPEndPoint |
|
|
1521
|
-
set BindIPEndPointDelegate(value: BindIPEndPoint |
|
|
1522
|
-
get Certificate(): X509Certificate |
|
|
1523
|
-
set Certificate(value: X509Certificate |
|
|
1524
|
-
readonly ClientCertificate: X509Certificate |
|
|
1518
|
+
get BindIPEndPointDelegate(): BindIPEndPoint | null;
|
|
1519
|
+
set BindIPEndPointDelegate(value: BindIPEndPoint | null);
|
|
1520
|
+
get Certificate(): X509Certificate | null;
|
|
1521
|
+
set Certificate(value: X509Certificate | null);
|
|
1522
|
+
readonly ClientCertificate: X509Certificate | null;
|
|
1525
1523
|
ConnectionLeaseTimeout: int;
|
|
1526
1524
|
ConnectionLimit: int;
|
|
1527
1525
|
readonly ConnectionName: string;
|
|
@@ -1561,13 +1559,13 @@ export const ServicePointManager: {
|
|
|
1561
1559
|
Expect100Continue: boolean;
|
|
1562
1560
|
EnableDnsRoundRobin: boolean;
|
|
1563
1561
|
DnsRefreshTimeout: int;
|
|
1564
|
-
get ServerCertificateValidationCallback(): RemoteCertificateValidationCallback |
|
|
1565
|
-
set ServerCertificateValidationCallback(value: RemoteCertificateValidationCallback |
|
|
1562
|
+
get ServerCertificateValidationCallback(): RemoteCertificateValidationCallback | null;
|
|
1563
|
+
set ServerCertificateValidationCallback(value: RemoteCertificateValidationCallback | null);
|
|
1566
1564
|
ReusePort: boolean;
|
|
1567
1565
|
CheckCertificateRevocationList: boolean;
|
|
1568
1566
|
readonly EncryptionPolicy: EncryptionPolicy;
|
|
1569
|
-
FindServicePoint(uriString: string, proxy: IWebProxy): ServicePoint;
|
|
1570
|
-
FindServicePoint(address: Uri, proxy: IWebProxy): ServicePoint;
|
|
1567
|
+
FindServicePoint(uriString: string, proxy: IWebProxy | null): ServicePoint;
|
|
1568
|
+
FindServicePoint(address: Uri, proxy: IWebProxy | null): ServicePoint;
|
|
1571
1569
|
FindServicePoint(address: Uri): ServicePoint;
|
|
1572
1570
|
SetTcpKeepAlive(enabled: boolean, keepAliveTime: int, keepAliveInterval: int): void;
|
|
1573
1571
|
};
|
|
@@ -1583,8 +1581,8 @@ export interface SocketAddress$instance {
|
|
|
1583
1581
|
readonly Buffer: Memory_1<System_Internal.Byte>;
|
|
1584
1582
|
readonly Family: AddressFamily;
|
|
1585
1583
|
Size: int;
|
|
1586
|
-
Equals(comparand:
|
|
1587
|
-
Equals(comparand: SocketAddress): boolean;
|
|
1584
|
+
Equals(comparand: JsValue | null): boolean;
|
|
1585
|
+
Equals(comparand: SocketAddress | null): boolean;
|
|
1588
1586
|
GetHashCode(): int;
|
|
1589
1587
|
ToString(): string;
|
|
1590
1588
|
}
|
|
@@ -1610,7 +1608,7 @@ export type SocketAddress = SocketAddress$instance & __SocketAddress$views & { [
|
|
|
1610
1608
|
export interface TransportContext$instance {
|
|
1611
1609
|
readonly __tsonic_type_System_Net_TransportContext: never;
|
|
1612
1610
|
|
|
1613
|
-
GetChannelBinding(kind: ChannelBindingKind): ChannelBinding |
|
|
1611
|
+
GetChannelBinding(kind: ChannelBindingKind): ChannelBinding | null;
|
|
1614
1612
|
}
|
|
1615
1613
|
|
|
1616
1614
|
|
|
@@ -1697,35 +1695,35 @@ export interface WebClient$instance extends Component {
|
|
|
1697
1695
|
AllowReadStreamBuffering: boolean;
|
|
1698
1696
|
AllowWriteStreamBuffering: boolean;
|
|
1699
1697
|
BaseAddress: string;
|
|
1700
|
-
get CachePolicy(): RequestCachePolicy |
|
|
1701
|
-
set CachePolicy(value: RequestCachePolicy |
|
|
1702
|
-
get Credentials(): ICredentials |
|
|
1703
|
-
set Credentials(value: ICredentials |
|
|
1698
|
+
get CachePolicy(): RequestCachePolicy | null;
|
|
1699
|
+
set CachePolicy(value: RequestCachePolicy | null);
|
|
1700
|
+
get Credentials(): ICredentials | null;
|
|
1701
|
+
set Credentials(value: ICredentials | null);
|
|
1704
1702
|
Encoding: Encoding;
|
|
1705
1703
|
Headers: WebHeaderCollection;
|
|
1706
1704
|
readonly IsBusy: boolean;
|
|
1707
|
-
get Proxy(): IWebProxy |
|
|
1708
|
-
set Proxy(value: IWebProxy |
|
|
1705
|
+
get Proxy(): IWebProxy | null;
|
|
1706
|
+
set Proxy(value: IWebProxy | null);
|
|
1709
1707
|
QueryString: NameValueCollection;
|
|
1710
|
-
readonly ResponseHeaders: WebHeaderCollection |
|
|
1708
|
+
readonly ResponseHeaders: WebHeaderCollection | null;
|
|
1711
1709
|
UseDefaultCredentials: boolean;
|
|
1712
1710
|
CancelAsync(): void;
|
|
1713
1711
|
DownloadData(address: string): byte[];
|
|
1714
1712
|
DownloadData(address: Uri): byte[];
|
|
1715
1713
|
DownloadDataAsync(address: Uri): void;
|
|
1716
|
-
DownloadDataAsync(address: Uri, userToken:
|
|
1714
|
+
DownloadDataAsync(address: Uri, userToken: JsValue | null): void;
|
|
1717
1715
|
DownloadDataTaskAsync(address: string): Task_1<byte[]>;
|
|
1718
1716
|
DownloadDataTaskAsync(address: Uri): Task_1<byte[]>;
|
|
1719
1717
|
DownloadFile(address: string, fileName: string): void;
|
|
1720
1718
|
DownloadFile(address: Uri, fileName: string): void;
|
|
1721
1719
|
DownloadFileAsync(address: Uri, fileName: string): void;
|
|
1722
|
-
DownloadFileAsync(address: Uri, fileName: string, userToken:
|
|
1720
|
+
DownloadFileAsync(address: Uri, fileName: string, userToken: JsValue | null): void;
|
|
1723
1721
|
DownloadFileTaskAsync(address: string, fileName: string): Task;
|
|
1724
1722
|
DownloadFileTaskAsync(address: Uri, fileName: string): Task;
|
|
1725
1723
|
DownloadString(address: string): string;
|
|
1726
1724
|
DownloadString(address: Uri): string;
|
|
1727
1725
|
DownloadStringAsync(address: Uri): void;
|
|
1728
|
-
DownloadStringAsync(address: Uri, userToken:
|
|
1726
|
+
DownloadStringAsync(address: Uri, userToken: JsValue | null): void;
|
|
1729
1727
|
DownloadStringTaskAsync(address: string): Task_1<System_Internal.String>;
|
|
1730
1728
|
DownloadStringTaskAsync(address: Uri): Task_1<System_Internal.String>;
|
|
1731
1729
|
GetWebRequest(address: Uri): WebRequest;
|
|
@@ -1746,64 +1744,64 @@ export interface WebClient$instance extends Component {
|
|
|
1746
1744
|
OpenRead(address: string): Stream;
|
|
1747
1745
|
OpenRead(address: Uri): Stream;
|
|
1748
1746
|
OpenReadAsync(address: Uri): void;
|
|
1749
|
-
OpenReadAsync(address: Uri, userToken:
|
|
1747
|
+
OpenReadAsync(address: Uri, userToken: JsValue | null): void;
|
|
1750
1748
|
OpenReadTaskAsync(address: string): Task_1<Stream>;
|
|
1751
1749
|
OpenReadTaskAsync(address: Uri): Task_1<Stream>;
|
|
1752
1750
|
OpenWrite(address: string): Stream;
|
|
1753
1751
|
OpenWrite(address: Uri): Stream;
|
|
1754
|
-
OpenWrite(address: string, method: string): Stream;
|
|
1755
|
-
OpenWrite(address: Uri, method: string): Stream;
|
|
1752
|
+
OpenWrite(address: string, method: string | null): Stream;
|
|
1753
|
+
OpenWrite(address: Uri, method: string | null): Stream;
|
|
1756
1754
|
OpenWriteAsync(address: Uri): void;
|
|
1757
|
-
OpenWriteAsync(address: Uri, method: string): void;
|
|
1758
|
-
OpenWriteAsync(address: Uri, method: string, userToken:
|
|
1755
|
+
OpenWriteAsync(address: Uri, method: string | null): void;
|
|
1756
|
+
OpenWriteAsync(address: Uri, method: string | null, userToken: JsValue | null): void;
|
|
1759
1757
|
OpenWriteTaskAsync(address: string): Task_1<Stream>;
|
|
1760
1758
|
OpenWriteTaskAsync(address: Uri): Task_1<Stream>;
|
|
1761
|
-
OpenWriteTaskAsync(address: string, method: string): Task_1<Stream>;
|
|
1762
|
-
OpenWriteTaskAsync(address: Uri, method: string): Task_1<Stream>;
|
|
1759
|
+
OpenWriteTaskAsync(address: string, method: string | null): Task_1<Stream>;
|
|
1760
|
+
OpenWriteTaskAsync(address: Uri, method: string | null): Task_1<Stream>;
|
|
1763
1761
|
UploadData(address: string, data: byte[]): byte[];
|
|
1764
1762
|
UploadData(address: Uri, data: byte[]): byte[];
|
|
1765
|
-
UploadData(address: string, method: string, data: byte[]): byte[];
|
|
1766
|
-
UploadData(address: Uri, method: string, data: byte[]): byte[];
|
|
1763
|
+
UploadData(address: string, method: string | null, data: byte[]): byte[];
|
|
1764
|
+
UploadData(address: Uri, method: string | null, data: byte[]): byte[];
|
|
1767
1765
|
UploadDataAsync(address: Uri, data: byte[]): void;
|
|
1768
|
-
UploadDataAsync(address: Uri, method: string, data: byte[]): void;
|
|
1769
|
-
UploadDataAsync(address: Uri, method: string, data: byte[], userToken:
|
|
1766
|
+
UploadDataAsync(address: Uri, method: string | null, data: byte[]): void;
|
|
1767
|
+
UploadDataAsync(address: Uri, method: string | null, data: byte[], userToken: JsValue | null): void;
|
|
1770
1768
|
UploadDataTaskAsync(address: string, data: byte[]): Task_1<byte[]>;
|
|
1771
1769
|
UploadDataTaskAsync(address: Uri, data: byte[]): Task_1<byte[]>;
|
|
1772
|
-
UploadDataTaskAsync(address: string, method: string, data: byte[]): Task_1<byte[]>;
|
|
1773
|
-
UploadDataTaskAsync(address: Uri, method: string, data: byte[]): Task_1<byte[]>;
|
|
1770
|
+
UploadDataTaskAsync(address: string, method: string | null, data: byte[]): Task_1<byte[]>;
|
|
1771
|
+
UploadDataTaskAsync(address: Uri, method: string | null, data: byte[]): Task_1<byte[]>;
|
|
1774
1772
|
UploadFile(address: string, fileName: string): byte[];
|
|
1775
1773
|
UploadFile(address: Uri, fileName: string): byte[];
|
|
1776
|
-
UploadFile(address: string, method: string, fileName: string): byte[];
|
|
1777
|
-
UploadFile(address: Uri, method: string, fileName: string): byte[];
|
|
1774
|
+
UploadFile(address: string, method: string | null, fileName: string): byte[];
|
|
1775
|
+
UploadFile(address: Uri, method: string | null, fileName: string): byte[];
|
|
1778
1776
|
UploadFileAsync(address: Uri, fileName: string): void;
|
|
1779
|
-
UploadFileAsync(address: Uri, method: string, fileName: string): void;
|
|
1780
|
-
UploadFileAsync(address: Uri, method: string, fileName: string, userToken:
|
|
1777
|
+
UploadFileAsync(address: Uri, method: string | null, fileName: string): void;
|
|
1778
|
+
UploadFileAsync(address: Uri, method: string | null, fileName: string, userToken: JsValue | null): void;
|
|
1781
1779
|
UploadFileTaskAsync(address: string, fileName: string): Task_1<byte[]>;
|
|
1782
1780
|
UploadFileTaskAsync(address: Uri, fileName: string): Task_1<byte[]>;
|
|
1783
|
-
UploadFileTaskAsync(address: string, method: string, fileName: string): Task_1<byte[]>;
|
|
1784
|
-
UploadFileTaskAsync(address: Uri, method: string, fileName: string): Task_1<byte[]>;
|
|
1781
|
+
UploadFileTaskAsync(address: string, method: string | null, fileName: string): Task_1<byte[]>;
|
|
1782
|
+
UploadFileTaskAsync(address: Uri, method: string | null, fileName: string): Task_1<byte[]>;
|
|
1785
1783
|
UploadString(address: string, data: string): string;
|
|
1786
1784
|
UploadString(address: Uri, data: string): string;
|
|
1787
|
-
UploadString(address: string, method: string, data: string): string;
|
|
1788
|
-
UploadString(address: Uri, method: string, data: string): string;
|
|
1785
|
+
UploadString(address: string, method: string | null, data: string): string;
|
|
1786
|
+
UploadString(address: Uri, method: string | null, data: string): string;
|
|
1789
1787
|
UploadStringAsync(address: Uri, data: string): void;
|
|
1790
|
-
UploadStringAsync(address: Uri, method: string, data: string): void;
|
|
1791
|
-
UploadStringAsync(address: Uri, method: string, data: string, userToken:
|
|
1788
|
+
UploadStringAsync(address: Uri, method: string | null, data: string): void;
|
|
1789
|
+
UploadStringAsync(address: Uri, method: string | null, data: string, userToken: JsValue | null): void;
|
|
1792
1790
|
UploadStringTaskAsync(address: string, data: string): Task_1<System_Internal.String>;
|
|
1793
1791
|
UploadStringTaskAsync(address: Uri, data: string): Task_1<System_Internal.String>;
|
|
1794
|
-
UploadStringTaskAsync(address: string, method: string, data: string): Task_1<System_Internal.String>;
|
|
1795
|
-
UploadStringTaskAsync(address: Uri, method: string, data: string): Task_1<System_Internal.String>;
|
|
1792
|
+
UploadStringTaskAsync(address: string, method: string | null, data: string): Task_1<System_Internal.String>;
|
|
1793
|
+
UploadStringTaskAsync(address: Uri, method: string | null, data: string): Task_1<System_Internal.String>;
|
|
1796
1794
|
UploadValues(address: string, data: NameValueCollection): byte[];
|
|
1797
1795
|
UploadValues(address: Uri, data: NameValueCollection): byte[];
|
|
1798
|
-
UploadValues(address: string, method: string, data: NameValueCollection): byte[];
|
|
1799
|
-
UploadValues(address: Uri, method: string, data: NameValueCollection): byte[];
|
|
1796
|
+
UploadValues(address: string, method: string | null, data: NameValueCollection): byte[];
|
|
1797
|
+
UploadValues(address: Uri, method: string | null, data: NameValueCollection): byte[];
|
|
1800
1798
|
UploadValuesAsync(address: Uri, data: NameValueCollection): void;
|
|
1801
|
-
UploadValuesAsync(address: Uri, method: string, data: NameValueCollection): void;
|
|
1802
|
-
UploadValuesAsync(address: Uri, method: string, data: NameValueCollection, userToken:
|
|
1799
|
+
UploadValuesAsync(address: Uri, method: string | null, data: NameValueCollection): void;
|
|
1800
|
+
UploadValuesAsync(address: Uri, method: string | null, data: NameValueCollection, userToken: JsValue | null): void;
|
|
1803
1801
|
UploadValuesTaskAsync(address: string, data: NameValueCollection): Task_1<byte[]>;
|
|
1804
|
-
UploadValuesTaskAsync(address: string, method: string, data: NameValueCollection): Task_1<byte[]>;
|
|
1802
|
+
UploadValuesTaskAsync(address: string, method: string | null, data: NameValueCollection): Task_1<byte[]>;
|
|
1805
1803
|
UploadValuesTaskAsync(address: Uri, data: NameValueCollection): Task_1<byte[]>;
|
|
1806
|
-
UploadValuesTaskAsync(address: Uri, method: string, data: NameValueCollection): Task_1<byte[]>;
|
|
1804
|
+
UploadValuesTaskAsync(address: Uri, method: string | null, data: NameValueCollection): Task_1<byte[]>;
|
|
1807
1805
|
}
|
|
1808
1806
|
|
|
1809
1807
|
|
|
@@ -1825,7 +1823,7 @@ export interface WebException$instance extends InvalidOperationException {
|
|
|
1825
1823
|
|
|
1826
1824
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1827
1825
|
|
|
1828
|
-
readonly Response: WebResponse |
|
|
1826
|
+
readonly Response: WebResponse | null;
|
|
1829
1827
|
readonly Status: WebExceptionStatus;
|
|
1830
1828
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
1831
1829
|
}
|
|
@@ -1833,10 +1831,10 @@ export interface WebException$instance extends InvalidOperationException {
|
|
|
1833
1831
|
|
|
1834
1832
|
export const WebException: {
|
|
1835
1833
|
new(): WebException;
|
|
1836
|
-
new(message: string): WebException;
|
|
1837
|
-
new(message: string, innerException: Exception): WebException;
|
|
1838
|
-
new(message: string, status: WebExceptionStatus): WebException;
|
|
1839
|
-
new(message: string, innerException: Exception, status: WebExceptionStatus, response: WebResponse): WebException;
|
|
1834
|
+
new(message: string | null): WebException;
|
|
1835
|
+
new(message: string | null, innerException: Exception | null): WebException;
|
|
1836
|
+
new(message: string | null, status: WebExceptionStatus): WebException;
|
|
1837
|
+
new(message: string | null, innerException: Exception | null, status: WebExceptionStatus, response: WebResponse | null): WebException;
|
|
1840
1838
|
};
|
|
1841
1839
|
|
|
1842
1840
|
|
|
@@ -1855,36 +1853,36 @@ export interface WebHeaderCollection$instance extends NameValueCollection {
|
|
|
1855
1853
|
readonly __tsonic_iface_System_Runtime_Serialization_IDeserializationCallback: never;
|
|
1856
1854
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1857
1855
|
|
|
1858
|
-
readonly AllKeys: (string |
|
|
1856
|
+
readonly AllKeys: (string | null)[] | string[];
|
|
1859
1857
|
readonly Count: int;
|
|
1860
1858
|
readonly Keys: NameObjectCollectionBase_KeysCollection;
|
|
1861
|
-
Add(header: HttpRequestHeader, value: string): void;
|
|
1862
|
-
Add(header: HttpResponseHeader, value: string): void;
|
|
1859
|
+
Add(header: HttpRequestHeader, value: string | null): void;
|
|
1860
|
+
Add(header: HttpResponseHeader, value: string | null): void;
|
|
1863
1861
|
Add(header: string): void;
|
|
1864
|
-
Add(name: string, value: string): void;
|
|
1862
|
+
Add(name: string, value: string | null): void;
|
|
1865
1863
|
Add(c: NameValueCollection): void;
|
|
1866
1864
|
Clear(): void;
|
|
1867
|
-
Get(index: int): string |
|
|
1868
|
-
Get(name: string): string |
|
|
1869
|
-
get_Item(header: HttpRequestHeader): string |
|
|
1870
|
-
get_Item(header: HttpResponseHeader): string |
|
|
1871
|
-
get_Item(name: string): string |
|
|
1872
|
-
get_Item(index: int): string |
|
|
1865
|
+
Get(index: int): string | null;
|
|
1866
|
+
Get(name: string | null): string | null;
|
|
1867
|
+
get_Item(header: HttpRequestHeader): string | null;
|
|
1868
|
+
get_Item(header: HttpResponseHeader): string | null;
|
|
1869
|
+
get_Item(name: string | null): string | null;
|
|
1870
|
+
get_Item(index: int): string | null;
|
|
1873
1871
|
GetEnumerator(): IEnumerator;
|
|
1874
1872
|
GetKey(index: int): string;
|
|
1875
1873
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
1876
|
-
GetValues(index: int): string[] |
|
|
1877
|
-
GetValues(header: string): string[] |
|
|
1878
|
-
OnDeserialization(sender:
|
|
1874
|
+
GetValues(index: int): string[] | null;
|
|
1875
|
+
GetValues(header: string): string[] | null;
|
|
1876
|
+
OnDeserialization(sender: JsValue | null): void;
|
|
1879
1877
|
Remove(header: HttpRequestHeader): void;
|
|
1880
1878
|
Remove(header: HttpResponseHeader): void;
|
|
1881
1879
|
Remove(name: string): void;
|
|
1882
|
-
Set(name: string, value: string): void;
|
|
1883
|
-
Set(header: HttpRequestHeader, value: string): void;
|
|
1884
|
-
Set(header: HttpResponseHeader, value: string): void;
|
|
1885
|
-
set_Item(header: HttpRequestHeader, value: string |
|
|
1886
|
-
set_Item(header: HttpResponseHeader, value: string |
|
|
1887
|
-
set_Item(name: string, value: string |
|
|
1880
|
+
Set(name: string, value: string | null): void;
|
|
1881
|
+
Set(header: HttpRequestHeader, value: string | null): void;
|
|
1882
|
+
Set(header: HttpResponseHeader, value: string | null): void;
|
|
1883
|
+
set_Item(header: HttpRequestHeader, value: string | null): void;
|
|
1884
|
+
set_Item(header: HttpResponseHeader, value: string | null): void;
|
|
1885
|
+
set_Item(name: string | null, value: string | null): void;
|
|
1888
1886
|
ToByteArray(): byte[];
|
|
1889
1887
|
ToString(): string;
|
|
1890
1888
|
}
|
|
@@ -1913,31 +1911,31 @@ export interface WebProxy$instance extends IWebProxy$instance, System_Runtime_Se
|
|
|
1913
1911
|
readonly __tsonic_iface_System_Net_IWebProxy: never;
|
|
1914
1912
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1915
1913
|
|
|
1916
|
-
get Address(): Uri |
|
|
1917
|
-
set Address(value: Uri |
|
|
1914
|
+
get Address(): Uri | null;
|
|
1915
|
+
set Address(value: Uri | null);
|
|
1918
1916
|
readonly BypassArrayList: ArrayList;
|
|
1919
1917
|
BypassList: string[];
|
|
1920
1918
|
BypassProxyOnLocal: boolean;
|
|
1921
|
-
get Credentials(): ICredentials |
|
|
1922
|
-
set Credentials(value: ICredentials |
|
|
1919
|
+
get Credentials(): ICredentials | null;
|
|
1920
|
+
set Credentials(value: ICredentials | null);
|
|
1923
1921
|
UseDefaultCredentials: boolean;
|
|
1924
1922
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
1925
|
-
GetProxy(destination: Uri): Uri |
|
|
1923
|
+
GetProxy(destination: Uri): Uri | null;
|
|
1926
1924
|
IsBypassed(host: Uri): boolean;
|
|
1927
1925
|
}
|
|
1928
1926
|
|
|
1929
1927
|
|
|
1930
1928
|
export const WebProxy: {
|
|
1931
1929
|
new(): WebProxy;
|
|
1932
|
-
new(Address: Uri): WebProxy;
|
|
1933
|
-
new(Address: Uri, BypassOnLocal: boolean): WebProxy;
|
|
1934
|
-
new(Address: Uri, BypassOnLocal: boolean, BypassList: string[]): WebProxy;
|
|
1935
|
-
new(Address: Uri, BypassOnLocal: boolean, BypassList: string[], Credentials: ICredentials): WebProxy;
|
|
1930
|
+
new(Address: Uri | null): WebProxy;
|
|
1931
|
+
new(Address: Uri | null, BypassOnLocal: boolean): WebProxy;
|
|
1932
|
+
new(Address: Uri | null, BypassOnLocal: boolean, BypassList: string[] | null): WebProxy;
|
|
1933
|
+
new(Address: Uri | null, BypassOnLocal: boolean, BypassList: string[] | null, Credentials: ICredentials | null): WebProxy;
|
|
1936
1934
|
new(Host: string, Port: int): WebProxy;
|
|
1937
|
-
new(Address: string): WebProxy;
|
|
1938
|
-
new(Address: string, BypassOnLocal: boolean): WebProxy;
|
|
1939
|
-
new(Address: string, BypassOnLocal: boolean, BypassList: string[]): WebProxy;
|
|
1940
|
-
new(Address: string, BypassOnLocal: boolean, BypassList: string[], Credentials: ICredentials): WebProxy;
|
|
1935
|
+
new(Address: string | null): WebProxy;
|
|
1936
|
+
new(Address: string | null, BypassOnLocal: boolean): WebProxy;
|
|
1937
|
+
new(Address: string | null, BypassOnLocal: boolean, BypassList: string[] | null): WebProxy;
|
|
1938
|
+
new(Address: string | null, BypassOnLocal: boolean, BypassList: string[] | null, Credentials: ICredentials | null): WebProxy;
|
|
1941
1939
|
GetDefaultProxy(): WebProxy;
|
|
1942
1940
|
};
|
|
1943
1941
|
|
|
@@ -1956,27 +1954,27 @@ export interface WebRequest$instance extends MarshalByRefObject, System_Runtime_
|
|
|
1956
1954
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1957
1955
|
|
|
1958
1956
|
AuthenticationLevel: AuthenticationLevel;
|
|
1959
|
-
get CachePolicy(): RequestCachePolicy |
|
|
1960
|
-
set CachePolicy(value: RequestCachePolicy |
|
|
1961
|
-
get ConnectionGroupName(): string |
|
|
1962
|
-
set ConnectionGroupName(value: string |
|
|
1957
|
+
get CachePolicy(): RequestCachePolicy | null;
|
|
1958
|
+
set CachePolicy(value: RequestCachePolicy | null);
|
|
1959
|
+
get ConnectionGroupName(): string | null;
|
|
1960
|
+
set ConnectionGroupName(value: string | null);
|
|
1963
1961
|
ContentLength: long;
|
|
1964
|
-
get ContentType(): string |
|
|
1965
|
-
set ContentType(value: string |
|
|
1966
|
-
get Credentials(): ICredentials |
|
|
1967
|
-
set Credentials(value: ICredentials |
|
|
1962
|
+
get ContentType(): string | null;
|
|
1963
|
+
set ContentType(value: string | null);
|
|
1964
|
+
get Credentials(): ICredentials | null;
|
|
1965
|
+
set Credentials(value: ICredentials | null);
|
|
1968
1966
|
Headers: WebHeaderCollection;
|
|
1969
1967
|
ImpersonationLevel: TokenImpersonationLevel;
|
|
1970
1968
|
Method: string;
|
|
1971
1969
|
PreAuthenticate: boolean;
|
|
1972
|
-
get Proxy(): IWebProxy |
|
|
1973
|
-
set Proxy(value: IWebProxy |
|
|
1970
|
+
get Proxy(): IWebProxy | null;
|
|
1971
|
+
set Proxy(value: IWebProxy | null);
|
|
1974
1972
|
readonly RequestUri: Uri;
|
|
1975
1973
|
Timeout: int;
|
|
1976
1974
|
UseDefaultCredentials: boolean;
|
|
1977
1975
|
Abort(): void;
|
|
1978
|
-
BeginGetRequestStream(callback: AsyncCallback, state:
|
|
1979
|
-
BeginGetResponse(callback: AsyncCallback, state:
|
|
1976
|
+
BeginGetRequestStream(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
1977
|
+
BeginGetResponse(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
1980
1978
|
EndGetRequestStream(asyncResult: IAsyncResult): Stream;
|
|
1981
1979
|
EndGetResponse(asyncResult: IAsyncResult): WebResponse;
|
|
1982
1980
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
@@ -1988,10 +1986,10 @@ export interface WebRequest$instance extends MarshalByRefObject, System_Runtime_
|
|
|
1988
1986
|
|
|
1989
1987
|
|
|
1990
1988
|
export const WebRequest: (abstract new() => WebRequest) & (abstract new(serializationInfo: SerializationInfo, streamingContext: StreamingContext) => WebRequest) & {
|
|
1991
|
-
get DefaultCachePolicy(): RequestCachePolicy |
|
|
1992
|
-
set DefaultCachePolicy(value: RequestCachePolicy |
|
|
1993
|
-
get DefaultWebProxy(): IWebProxy |
|
|
1994
|
-
set DefaultWebProxy(value: IWebProxy |
|
|
1989
|
+
get DefaultCachePolicy(): RequestCachePolicy | null;
|
|
1990
|
+
set DefaultCachePolicy(value: RequestCachePolicy | null);
|
|
1991
|
+
get DefaultWebProxy(): IWebProxy | null;
|
|
1992
|
+
set DefaultWebProxy(value: IWebProxy | null);
|
|
1995
1993
|
Create(requestUriString: string): WebRequest;
|
|
1996
1994
|
Create(requestUri: Uri): WebRequest;
|
|
1997
1995
|
CreateDefault(requestUri: Uri): WebRequest;
|
|
@@ -2045,7 +2043,7 @@ export type WebResponse = WebResponse$instance & __WebResponse$views;
|
|
|
2045
2043
|
export interface WriteStreamClosedEventArgs$instance extends EventArgs {
|
|
2046
2044
|
readonly __tsonic_type_System_Net_WriteStreamClosedEventArgs: never;
|
|
2047
2045
|
|
|
2048
|
-
readonly Error: Exception |
|
|
2046
|
+
readonly Error: Exception | null;
|
|
2049
2047
|
}
|
|
2050
2048
|
|
|
2051
2049
|
|
|
@@ -2057,11 +2055,11 @@ export const WriteStreamClosedEventArgs: {
|
|
|
2057
2055
|
export type WriteStreamClosedEventArgs = WriteStreamClosedEventArgs$instance;
|
|
2058
2056
|
|
|
2059
2057
|
export abstract class Dns$instance {
|
|
2060
|
-
static BeginGetHostAddresses(hostNameOrAddress: string, requestCallback: AsyncCallback, state:
|
|
2061
|
-
static BeginGetHostByName(hostName: string, requestCallback: AsyncCallback, stateObject:
|
|
2062
|
-
static BeginGetHostEntry(address: IPAddress, requestCallback: AsyncCallback, stateObject:
|
|
2063
|
-
static BeginGetHostEntry(hostNameOrAddress: string, requestCallback: AsyncCallback, stateObject:
|
|
2064
|
-
static BeginResolve(hostName: string, requestCallback: AsyncCallback, stateObject:
|
|
2058
|
+
static BeginGetHostAddresses(hostNameOrAddress: string, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
|
|
2059
|
+
static BeginGetHostByName(hostName: string, requestCallback: AsyncCallback | null, stateObject: JsValue | null): IAsyncResult;
|
|
2060
|
+
static BeginGetHostEntry(address: IPAddress, requestCallback: AsyncCallback | null, stateObject: JsValue | null): IAsyncResult;
|
|
2061
|
+
static BeginGetHostEntry(hostNameOrAddress: string, requestCallback: AsyncCallback | null, stateObject: JsValue | null): IAsyncResult;
|
|
2062
|
+
static BeginResolve(hostName: string, requestCallback: AsyncCallback | null, stateObject: JsValue | null): IAsyncResult;
|
|
2065
2063
|
static EndGetHostAddresses(asyncResult: IAsyncResult): IPAddress[];
|
|
2066
2064
|
static EndGetHostByName(asyncResult: IAsyncResult): IPHostEntry;
|
|
2067
2065
|
static EndGetHostEntry(asyncResult: IAsyncResult): IPHostEntry;
|
|
@@ -2145,14 +2143,14 @@ export abstract class WebRequestMethods_Http$instance {
|
|
|
2145
2143
|
export type WebRequestMethods_Http = WebRequestMethods_Http$instance;
|
|
2146
2144
|
|
|
2147
2145
|
export abstract class WebUtility$instance {
|
|
2148
|
-
static HtmlDecode(value: string, output: TextWriter): void;
|
|
2149
|
-
static HtmlDecode(value: string): string |
|
|
2150
|
-
static HtmlEncode(value: string, output: TextWriter): void;
|
|
2151
|
-
static HtmlEncode(value: string): string |
|
|
2152
|
-
static UrlDecode(encodedValue: string): string |
|
|
2153
|
-
static UrlDecodeToBytes(encodedValue: byte[], offset: int, count: int): byte[] |
|
|
2154
|
-
static UrlEncode(value: string): string |
|
|
2155
|
-
static UrlEncodeToBytes(value: byte[], offset: int, count: int): byte[] |
|
|
2146
|
+
static HtmlDecode(value: string | null, output: TextWriter): void;
|
|
2147
|
+
static HtmlDecode(value: string | null): string | null;
|
|
2148
|
+
static HtmlEncode(value: string | null, output: TextWriter): void;
|
|
2149
|
+
static HtmlEncode(value: string | null): string | null;
|
|
2150
|
+
static UrlDecode(encodedValue: string | null): string | null;
|
|
2151
|
+
static UrlDecodeToBytes(encodedValue: byte[] | null, offset: int, count: int): byte[] | null;
|
|
2152
|
+
static UrlEncode(value: string | null): string | null;
|
|
2153
|
+
static UrlEncodeToBytes(value: byte[] | null, offset: int, count: int): byte[] | null;
|
|
2156
2154
|
}
|
|
2157
2155
|
|
|
2158
2156
|
|