@tsonic/dotnet 0.8.1 → 0.8.2
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.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +1 -1
- package/Microsoft.Win32/internal/index.d.ts +11 -11
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +994 -1006
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +3 -3
- package/System.CodeDom.Compiler/internal/index.d.ts +11 -11
- package/System.Collections/internal/index.d.ts +26 -28
- package/System.Collections.Concurrent/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +6 -6
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +44 -20
- package/System.Collections.Generic/internal/index.d.ts +68 -60
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +99 -99
- package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
- package/System.Collections.Specialized/internal/index.d.ts +63 -65
- package/System.ComponentModel/internal/index.d.ts +428 -430
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +66 -66
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
- package/System.ComponentModel.Design/internal/index.d.ts +72 -72
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +33 -33
- package/System.Data/internal/index.d.ts +168 -168
- package/System.Data.Common/internal/index.d.ts +48 -48
- package/System.Data.SqlTypes/internal/index.d.ts +21 -21
- package/System.Diagnostics/internal/index.d.ts +262 -262
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +25 -25
- package/System.Diagnostics.Contracts/internal/index.d.ts +8 -8
- package/System.Diagnostics.Metrics/internal/index.d.ts +33 -33
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +5 -5
- package/System.Diagnostics.Tracing/internal/index.d.ts +28 -28
- package/System.Drawing/internal/index.d.ts +77 -77
- package/System.Dynamic/internal/index.d.ts +27 -27
- package/System.Formats.Asn1/internal/index.d.ts +4 -4
- package/System.Formats.Tar/internal/index.d.ts +3 -3
- package/System.Globalization/internal/index.d.ts +18 -18
- package/System.IO/internal/index.d.ts +107 -107
- package/System.IO.Compression/internal/index.d.ts +25 -25
- package/System.IO.Enumeration/internal/index.d.ts +5 -5
- package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
- package/System.IO.Pipelines/internal/index.d.ts +5 -5
- package/System.IO.Pipes/internal/index.d.ts +4 -4
- package/System.Linq/internal/index.d.ts +180 -180
- package/System.Linq.Expressions/internal/index.d.ts +169 -169
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
- package/System.Net/internal/index.d.ts +151 -153
- package/System.Net.Cache/internal/index.d.ts +2 -2
- package/System.Net.Http/internal/index.d.ts +58 -58
- package/System.Net.Http.Headers/internal/index.d.ts +48 -48
- package/System.Net.Http.Json/internal/index.d.ts +58 -58
- package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
- package/System.Net.Mail/internal/index.d.ts +72 -72
- package/System.Net.Mime/internal/index.d.ts +2 -2
- package/System.Net.NetworkInformation/internal/index.d.ts +24 -24
- package/System.Net.Quic/internal/index.d.ts +4 -4
- package/System.Net.Security/internal/index.d.ts +52 -52
- package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
- package/System.Net.Sockets/internal/index.d.ts +41 -41
- package/System.Net.WebSockets/internal/index.d.ts +34 -34
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +91 -93
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +219 -219
- package/System.Reflection.Emit/internal/index.d.ts +118 -118
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +14 -14
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +5 -5
- package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
- package/System.Resources/internal/index.d.ts +24 -24
- package/System.Runtime/internal/index.d.ts +5 -5
- package/System.Runtime.CompilerServices/internal/index.d.ts +31 -31
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +93 -93
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +10 -10
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +23 -23
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +36 -36
- package/System.Runtime.Loader/internal/index.d.ts +6 -6
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +77 -79
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +16 -16
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +4 -4
- package/System.Runtime.Serialization.Json/internal/index.d.ts +26 -26
- package/System.Runtime.Versioning/internal/index.d.ts +9 -9
- package/System.Security/internal/index.d.ts +49 -49
- package/System.Security.AccessControl/internal/index.d.ts +31 -31
- package/System.Security.Authentication/internal/index.d.ts +4 -4
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +10 -10
- package/System.Security.Claims/internal/index.d.ts +23 -25
- package/System.Security.Cryptography/internal/index.d.ts +189 -189
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +71 -71
- package/System.Security.Policy/internal/index.d.ts +2 -2
- package/System.Security.Principal/internal/index.d.ts +9 -11
- package/System.Text/internal/index.d.ts +51 -51
- package/System.Text.Json/internal/index.d.ts +83 -83
- package/System.Text.Json.Nodes/internal/index.d.ts +65 -65
- package/System.Text.Json.Schema/internal/index.d.ts +5 -5
- package/System.Text.Json.Serialization/internal/index.d.ts +10 -10
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +47 -47
- package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
- package/System.Text.Unicode/internal/index.d.ts +4 -4
- package/System.Threading/internal/index.d.ts +87 -87
- package/System.Threading.Channels/internal/index.d.ts +8 -8
- package/System.Threading.Tasks/internal/index.d.ts +84 -94
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +29 -26
- package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
- package/System.Timers/internal/index.d.ts +3 -3
- package/System.Transactions/internal/index.d.ts +20 -20
- package/System.Web/internal/index.d.ts +31 -31
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +215 -215
- package/System.Xml.Linq/internal/index.d.ts +51 -51
- package/System.Xml.Resolvers/internal/index.d.ts +4 -4
- package/System.Xml.Schema/internal/index.d.ts +105 -105
- package/System.Xml.Serialization/internal/index.d.ts +136 -136
- package/System.Xml.XPath/internal/index.d.ts +19 -19
- package/System.Xml.Xsl/internal/index.d.ts +41 -41
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +20 -20
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -417,16 +417,16 @@ export enum TlsCipherSuite {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
|
|
420
|
-
export type LocalCertificateSelectionCallback = (sender: unknown, targetHost: string, localCertificates: X509CertificateCollection, remoteCertificate: X509Certificate, acceptableIssuers: string[]) => X509Certificate;
|
|
420
|
+
export type LocalCertificateSelectionCallback = (sender: unknown, targetHost: string, localCertificates: X509CertificateCollection, remoteCertificate: X509Certificate | undefined, acceptableIssuers: string[]) => X509Certificate | undefined;
|
|
421
421
|
|
|
422
422
|
|
|
423
423
|
export type RemoteCertificateValidationCallback = (sender: unknown, certificate: X509Certificate, chain: X509Chain, sslPolicyErrors: SslPolicyErrors) => boolean;
|
|
424
424
|
|
|
425
425
|
|
|
426
|
-
export type ServerCertificateSelectionCallback = (sender: unknown, hostName: string) => X509Certificate;
|
|
426
|
+
export type ServerCertificateSelectionCallback = (sender: unknown, hostName: string | undefined) => X509Certificate;
|
|
427
427
|
|
|
428
428
|
|
|
429
|
-
export type ServerOptionsSelectionCallback = (stream: SslStream, clientHelloInfo: SslClientHelloInfo, state: unknown, cancellationToken: CancellationToken) => ValueTask_1<SslServerAuthenticationOptions>;
|
|
429
|
+
export type ServerOptionsSelectionCallback = (stream: SslStream, clientHelloInfo: SslClientHelloInfo, state: unknown | undefined, cancellationToken: CancellationToken) => ValueTask_1<SslServerAuthenticationOptions>;
|
|
430
430
|
|
|
431
431
|
|
|
432
432
|
export interface SslApplicationProtocol$instance {
|
|
@@ -434,7 +434,7 @@ export interface SslApplicationProtocol$instance {
|
|
|
434
434
|
equals(other: SslApplicationProtocol): boolean;
|
|
435
435
|
equals(obj: unknown): boolean;
|
|
436
436
|
getHashCode(): int;
|
|
437
|
-
toString(): string;
|
|
437
|
+
toString(): string | undefined;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
|
|
@@ -516,10 +516,10 @@ export interface NegotiateAuthentication$instance {
|
|
|
516
516
|
readonly package_: string;
|
|
517
517
|
readonly protectionLevel: ProtectionLevel;
|
|
518
518
|
readonly remoteIdentity: IIdentity;
|
|
519
|
-
readonly targetName: string;
|
|
519
|
+
readonly targetName: string | undefined;
|
|
520
520
|
computeIntegrityCheck(message: ReadOnlySpan_1<System_Internal.Byte>, signatureWriter: IBufferWriter_1<System_Internal.Byte>): void;
|
|
521
521
|
dispose(): void;
|
|
522
|
-
getOutgoingBlob(incomingBlob: ReadOnlySpan_1<System_Internal.Byte>, statusCode: NegotiateAuthenticationStatusCode): byte[];
|
|
522
|
+
getOutgoingBlob(incomingBlob: ReadOnlySpan_1<System_Internal.Byte>, statusCode: NegotiateAuthenticationStatusCode): byte[] | undefined;
|
|
523
523
|
getOutgoingBlob(incomingBlob: string, statusCode: NegotiateAuthenticationStatusCode): string;
|
|
524
524
|
unwrap(input: ReadOnlySpan_1<System_Internal.Byte>, outputWriter: IBufferWriter_1<System_Internal.Byte>, wasEncrypted: boolean): NegotiateAuthenticationStatusCode;
|
|
525
525
|
unwrapInPlace(input: Span_1<System_Internal.Byte>, unwrappedOffset: int, unwrappedLength: int, wasEncrypted: boolean): NegotiateAuthenticationStatusCode;
|
|
@@ -545,12 +545,12 @@ export type NegotiateAuthentication = NegotiateAuthentication$instance & __Negot
|
|
|
545
545
|
|
|
546
546
|
export interface NegotiateAuthenticationClientOptions$instance {
|
|
547
547
|
allowedImpersonationLevel: TokenImpersonationLevel;
|
|
548
|
-
binding: ChannelBinding;
|
|
548
|
+
binding: ChannelBinding | undefined;
|
|
549
549
|
credential: NetworkCredential;
|
|
550
550
|
package_: string;
|
|
551
551
|
requiredProtectionLevel: ProtectionLevel;
|
|
552
552
|
requireMutualAuthentication: boolean;
|
|
553
|
-
targetName: string;
|
|
553
|
+
targetName: string | undefined;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
|
|
@@ -562,10 +562,10 @@ export const NegotiateAuthenticationClientOptions: {
|
|
|
562
562
|
export type NegotiateAuthenticationClientOptions = NegotiateAuthenticationClientOptions$instance;
|
|
563
563
|
|
|
564
564
|
export interface NegotiateAuthenticationServerOptions$instance {
|
|
565
|
-
binding: ChannelBinding;
|
|
565
|
+
binding: ChannelBinding | undefined;
|
|
566
566
|
credential: NetworkCredential;
|
|
567
567
|
package_: string;
|
|
568
|
-
policy: ExtendedProtectionPolicy;
|
|
568
|
+
policy: ExtendedProtectionPolicy | undefined;
|
|
569
569
|
requiredImpersonationLevel: TokenImpersonationLevel;
|
|
570
570
|
requiredProtectionLevel: ProtectionLevel;
|
|
571
571
|
}
|
|
@@ -596,33 +596,33 @@ export interface NegotiateStream$instance extends AuthenticatedStream$instance {
|
|
|
596
596
|
writeTimeout: int;
|
|
597
597
|
authenticateAsClient(): void;
|
|
598
598
|
authenticateAsClient(credential: NetworkCredential, targetName: string): void;
|
|
599
|
-
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string): void;
|
|
599
|
+
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | undefined, targetName: string): void;
|
|
600
600
|
authenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
|
|
601
|
-
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
|
|
601
|
+
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | undefined, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
|
|
602
602
|
authenticateAsClientAsync(): Task;
|
|
603
603
|
authenticateAsClientAsync(credential: NetworkCredential, targetName: string): Task;
|
|
604
604
|
authenticateAsClientAsync(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
|
|
605
|
-
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding, targetName: string): Task;
|
|
606
|
-
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
|
|
605
|
+
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding | undefined, targetName: string): Task;
|
|
606
|
+
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding | undefined, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
|
|
607
607
|
authenticateAsServer(): void;
|
|
608
608
|
authenticateAsServer(policy: ExtendedProtectionPolicy): void;
|
|
609
609
|
authenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
|
|
610
|
-
authenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
|
|
610
|
+
authenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy | undefined, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
|
|
611
611
|
authenticateAsServerAsync(): Task;
|
|
612
|
-
authenticateAsServerAsync(policy: ExtendedProtectionPolicy): Task;
|
|
612
|
+
authenticateAsServerAsync(policy: ExtendedProtectionPolicy | undefined): Task;
|
|
613
613
|
authenticateAsServerAsync(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
|
|
614
|
-
authenticateAsServerAsync(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
|
|
614
|
+
authenticateAsServerAsync(credential: NetworkCredential, policy: ExtendedProtectionPolicy | undefined, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
|
|
615
615
|
beginAuthenticateAsClient(asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
616
|
-
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
617
|
-
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
618
|
-
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
619
|
-
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
616
|
+
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
617
|
+
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | undefined, targetName: string, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
618
|
+
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
619
|
+
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | undefined, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
620
620
|
beginAuthenticateAsServer(asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
621
621
|
beginAuthenticateAsServer(policy: ExtendedProtectionPolicy, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
622
|
-
beginAuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
622
|
+
beginAuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
623
623
|
beginAuthenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
624
|
-
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
625
|
-
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
624
|
+
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
625
|
+
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
626
626
|
dispose(): void;
|
|
627
627
|
disposeAsync(): ValueTask;
|
|
628
628
|
endAuthenticateAsClient(asyncResult: IAsyncResult): void;
|
|
@@ -683,16 +683,16 @@ export interface SslClientAuthenticationOptions$instance {
|
|
|
683
683
|
allowRsaPssPadding: boolean;
|
|
684
684
|
allowTlsResume: boolean;
|
|
685
685
|
applicationProtocols: List_1<SslApplicationProtocol>;
|
|
686
|
-
certificateChainPolicy: X509ChainPolicy;
|
|
686
|
+
certificateChainPolicy: X509ChainPolicy | undefined;
|
|
687
687
|
certificateRevocationCheckMode: X509RevocationMode;
|
|
688
|
-
cipherSuitesPolicy: CipherSuitesPolicy;
|
|
689
|
-
clientCertificateContext: SslStreamCertificateContext;
|
|
688
|
+
cipherSuitesPolicy: CipherSuitesPolicy | undefined;
|
|
689
|
+
clientCertificateContext: SslStreamCertificateContext | undefined;
|
|
690
690
|
clientCertificates: X509CertificateCollection;
|
|
691
691
|
enabledSslProtocols: SslProtocols;
|
|
692
692
|
encryptionPolicy: EncryptionPolicy;
|
|
693
|
-
localCertificateSelectionCallback: LocalCertificateSelectionCallback;
|
|
694
|
-
remoteCertificateValidationCallback: RemoteCertificateValidationCallback;
|
|
695
|
-
targetHost: string;
|
|
693
|
+
localCertificateSelectionCallback: LocalCertificateSelectionCallback | undefined;
|
|
694
|
+
remoteCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
695
|
+
targetHost: string | undefined;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
|
|
@@ -709,16 +709,16 @@ export interface SslServerAuthenticationOptions$instance {
|
|
|
709
709
|
allowRsaPssPadding: boolean;
|
|
710
710
|
allowTlsResume: boolean;
|
|
711
711
|
applicationProtocols: List_1<SslApplicationProtocol>;
|
|
712
|
-
certificateChainPolicy: X509ChainPolicy;
|
|
712
|
+
certificateChainPolicy: X509ChainPolicy | undefined;
|
|
713
713
|
certificateRevocationCheckMode: X509RevocationMode;
|
|
714
|
-
cipherSuitesPolicy: CipherSuitesPolicy;
|
|
714
|
+
cipherSuitesPolicy: CipherSuitesPolicy | undefined;
|
|
715
715
|
clientCertificateRequired: boolean;
|
|
716
716
|
enabledSslProtocols: SslProtocols;
|
|
717
717
|
encryptionPolicy: EncryptionPolicy;
|
|
718
|
-
remoteCertificateValidationCallback: RemoteCertificateValidationCallback;
|
|
719
|
-
serverCertificate: X509Certificate;
|
|
720
|
-
serverCertificateContext: SslStreamCertificateContext;
|
|
721
|
-
serverCertificateSelectionCallback: ServerCertificateSelectionCallback;
|
|
718
|
+
remoteCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
719
|
+
serverCertificate: X509Certificate | undefined;
|
|
720
|
+
serverCertificateContext: SslStreamCertificateContext | undefined;
|
|
721
|
+
serverCertificateSelectionCallback: ServerCertificateSelectionCallback | undefined;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
|
|
@@ -747,23 +747,23 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
|
|
|
747
747
|
readonly keyExchangeAlgorithm: ExchangeAlgorithmType;
|
|
748
748
|
readonly keyExchangeStrength: int;
|
|
749
749
|
readonly length: long;
|
|
750
|
-
readonly localCertificate: X509Certificate;
|
|
750
|
+
readonly localCertificate: X509Certificate | undefined;
|
|
751
751
|
readonly negotiatedApplicationProtocol: SslApplicationProtocol;
|
|
752
752
|
readonly negotiatedCipherSuite: TlsCipherSuite;
|
|
753
753
|
position: long;
|
|
754
754
|
readTimeout: int;
|
|
755
|
-
readonly remoteCertificate: X509Certificate;
|
|
755
|
+
readonly remoteCertificate: X509Certificate | undefined;
|
|
756
756
|
readonly sslProtocol: SslProtocols;
|
|
757
757
|
readonly targetHostName: string;
|
|
758
758
|
readonly transportContext: TransportContext;
|
|
759
759
|
writeTimeout: int;
|
|
760
760
|
authenticateAsClient(targetHost: string): void;
|
|
761
|
-
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean): void;
|
|
762
|
-
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): void;
|
|
761
|
+
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection | undefined, checkCertificateRevocation: boolean): void;
|
|
762
|
+
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection | undefined, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): void;
|
|
763
763
|
authenticateAsClient(sslClientAuthenticationOptions: SslClientAuthenticationOptions): void;
|
|
764
764
|
authenticateAsClientAsync(targetHost: string): Task;
|
|
765
|
-
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean): Task;
|
|
766
|
-
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
|
|
765
|
+
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection | undefined, checkCertificateRevocation: boolean): Task;
|
|
766
|
+
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection | undefined, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
|
|
767
767
|
authenticateAsClientAsync(sslClientAuthenticationOptions: SslClientAuthenticationOptions, cancellationToken?: CancellationToken): Task;
|
|
768
768
|
authenticateAsServer(serverCertificate: X509Certificate): void;
|
|
769
769
|
authenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean): void;
|
|
@@ -773,15 +773,15 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
|
|
|
773
773
|
authenticateAsServerAsync(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean): Task;
|
|
774
774
|
authenticateAsServerAsync(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
|
|
775
775
|
authenticateAsServerAsync(sslServerAuthenticationOptions: SslServerAuthenticationOptions, cancellationToken?: CancellationToken): Task;
|
|
776
|
-
authenticateAsServerAsync(optionsCallback: ServerOptionsSelectionCallback, state: unknown, cancellationToken?: CancellationToken): Task;
|
|
777
|
-
beginAuthenticateAsClient(targetHost: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
776
|
+
authenticateAsServerAsync(optionsCallback: ServerOptionsSelectionCallback, state: unknown | undefined, cancellationToken?: CancellationToken): Task;
|
|
777
|
+
beginAuthenticateAsClient(targetHost: string, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
778
778
|
beginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
779
779
|
beginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
780
|
-
beginAuthenticateAsServer(serverCertificate: X509Certificate, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
781
|
-
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
782
|
-
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
783
|
-
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
784
|
-
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
780
|
+
beginAuthenticateAsServer(serverCertificate: X509Certificate, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
781
|
+
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
782
|
+
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
783
|
+
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
784
|
+
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | undefined, asyncState: unknown | undefined): IAsyncResult;
|
|
785
785
|
dispose(): void;
|
|
786
786
|
disposeAsync(): ValueTask;
|
|
787
787
|
endAuthenticateAsClient(asyncResult: IAsyncResult): void;
|
|
@@ -819,7 +819,7 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
|
|
|
819
819
|
export const SslStream: {
|
|
820
820
|
new(innerStream: Stream): SslStream;
|
|
821
821
|
new(innerStream: Stream, leaveInnerStreamOpen: boolean): SslStream;
|
|
822
|
-
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback): SslStream;
|
|
822
|
+
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback | undefined): SslStream;
|
|
823
823
|
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback, userCertificateSelectionCallback: LocalCertificateSelectionCallback): SslStream;
|
|
824
824
|
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback, userCertificateSelectionCallback: LocalCertificateSelectionCallback, encryptionPolicy: EncryptionPolicy): SslStream;
|
|
825
825
|
};
|
|
@@ -841,8 +841,8 @@ export interface SslStreamCertificateContext$instance {
|
|
|
841
841
|
|
|
842
842
|
export const SslStreamCertificateContext: {
|
|
843
843
|
new(): SslStreamCertificateContext;
|
|
844
|
-
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection, offline?: boolean, trust?: SslCertificateTrust): SslStreamCertificateContext;
|
|
845
|
-
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection, offline: boolean): SslStreamCertificateContext;
|
|
844
|
+
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection | undefined, offline?: boolean, trust?: SslCertificateTrust | undefined): SslStreamCertificateContext;
|
|
845
|
+
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection | undefined, offline: boolean): SslStreamCertificateContext;
|
|
846
846
|
};
|
|
847
847
|
|
|
848
848
|
|
|
@@ -22,14 +22,14 @@ export type SseItemParser_1<T> = (eventType: string, data: ReadOnlySpan_1<System
|
|
|
22
22
|
|
|
23
23
|
export interface SseItem_1$instance<T> {
|
|
24
24
|
readonly data: T;
|
|
25
|
-
eventId: string;
|
|
25
|
+
eventId: string | undefined;
|
|
26
26
|
readonly eventType: string;
|
|
27
27
|
reconnectionInterval: Nullable_1<TimeSpan>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
export const SseItem_1: {
|
|
32
|
-
new<T>(data: T, eventType: string): SseItem_1<T>;
|
|
32
|
+
new<T>(data: T, eventType: string | undefined): SseItem_1<T>;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
|
|
@@ -480,7 +480,7 @@ export type LingerOption = LingerOption$instance;
|
|
|
480
480
|
export interface MulticastOption$instance {
|
|
481
481
|
group: IPAddress;
|
|
482
482
|
interfaceIndex: int;
|
|
483
|
-
localAddress: IPAddress;
|
|
483
|
+
localAddress: IPAddress | undefined;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
|
|
@@ -504,8 +504,8 @@ export interface NetworkStream$instance extends Stream {
|
|
|
504
504
|
readTimeout: int;
|
|
505
505
|
readonly socket: Socket;
|
|
506
506
|
writeTimeout: int;
|
|
507
|
-
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
508
|
-
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
507
|
+
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
508
|
+
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
509
509
|
close(timeout: TimeSpan): void;
|
|
510
510
|
close(): void;
|
|
511
511
|
dispose(): void;
|
|
@@ -576,8 +576,8 @@ export interface SendPacketsElement$instance {
|
|
|
576
576
|
readonly buffer: byte[];
|
|
577
577
|
readonly count: int;
|
|
578
578
|
readonly endOfPacket: boolean;
|
|
579
|
-
readonly filePath: string;
|
|
580
|
-
readonly fileStream: FileStream;
|
|
579
|
+
readonly filePath: string | undefined;
|
|
580
|
+
readonly fileStream: FileStream | undefined;
|
|
581
581
|
readonly memoryBuffer: Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>>;
|
|
582
582
|
readonly offset: int;
|
|
583
583
|
readonly offsetLong: long;
|
|
@@ -614,7 +614,7 @@ export interface Socket$instance {
|
|
|
614
614
|
exclusiveAddressUse: boolean;
|
|
615
615
|
readonly handle: nint;
|
|
616
616
|
readonly isBound: boolean;
|
|
617
|
-
lingerState: LingerOption;
|
|
617
|
+
lingerState: LingerOption | undefined;
|
|
618
618
|
readonly localEndPoint: EndPoint;
|
|
619
619
|
multicastLoopback: boolean;
|
|
620
620
|
noDelay: boolean;
|
|
@@ -632,29 +632,29 @@ export interface Socket$instance {
|
|
|
632
632
|
acceptAsync(e: SocketAsyncEventArgs): boolean;
|
|
633
633
|
acceptAsync(): Task_1<Socket>;
|
|
634
634
|
acceptAsync(cancellationToken: CancellationToken): ValueTask_1<Socket>;
|
|
635
|
-
acceptAsync(acceptSocket: Socket): Task_1<Socket>;
|
|
635
|
+
acceptAsync(acceptSocket: Socket | undefined): Task_1<Socket>;
|
|
636
636
|
acceptAsync(acceptSocket: Socket, cancellationToken: CancellationToken): ValueTask_1<Socket>;
|
|
637
637
|
beginAccept(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
638
638
|
beginAccept(receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
639
639
|
beginAccept(acceptSocket: Socket, receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
640
|
-
beginConnect(remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
641
|
-
beginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
642
|
-
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
643
|
-
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
640
|
+
beginConnect(remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
641
|
+
beginConnect(host: string, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
642
|
+
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
643
|
+
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
644
644
|
beginDisconnect(reuseSocket: boolean, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
645
|
-
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
645
|
+
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
646
646
|
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
647
647
|
beginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
648
648
|
beginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
649
|
-
beginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
650
|
-
beginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
651
|
-
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
649
|
+
beginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
650
|
+
beginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
651
|
+
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
652
652
|
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
653
653
|
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
654
654
|
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
655
655
|
beginSendFile(fileName: string, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
656
656
|
beginSendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
657
|
-
beginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
657
|
+
beginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
658
658
|
bind(localEP: EndPoint): void;
|
|
659
659
|
close(): void;
|
|
660
660
|
close(timeout: int): void;
|
|
@@ -757,9 +757,9 @@ export interface Socket$instance {
|
|
|
757
757
|
sendAsync(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags): Task_1<System_Internal.Int32>;
|
|
758
758
|
sendFile(fileName: string): void;
|
|
759
759
|
sendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions): void;
|
|
760
|
-
sendFile(fileName: string, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
|
|
760
|
+
sendFile(fileName: string | undefined, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
|
|
761
761
|
sendFileAsync(fileName: string, cancellationToken?: CancellationToken): ValueTask;
|
|
762
|
-
sendFileAsync(fileName: string, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
|
|
762
|
+
sendFileAsync(fileName: string | undefined, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
|
|
763
763
|
sendPacketsAsync(e: SocketAsyncEventArgs): boolean;
|
|
764
764
|
sendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
|
|
765
765
|
sendTo(buffer: byte[], size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
|
|
@@ -811,12 +811,12 @@ export type Socket = Socket$instance & __Socket$views;
|
|
|
811
811
|
|
|
812
812
|
|
|
813
813
|
export interface SocketAsyncEventArgs$instance extends EventArgs {
|
|
814
|
-
acceptSocket: Socket;
|
|
814
|
+
acceptSocket: Socket | undefined;
|
|
815
815
|
readonly buffer: byte[];
|
|
816
|
-
bufferList: IList_1<ArraySegment_1<System_Internal.Byte
|
|
816
|
+
bufferList: IList_1<ArraySegment_1<System_Internal.Byte>> | undefined;
|
|
817
817
|
readonly bytesTransferred: int;
|
|
818
|
-
readonly connectByNameError: Exception;
|
|
819
|
-
readonly connectSocket: Socket;
|
|
818
|
+
readonly connectByNameError: Exception | undefined;
|
|
819
|
+
readonly connectSocket: Socket | undefined;
|
|
820
820
|
readonly count: int;
|
|
821
821
|
disconnectReuseSocket: boolean;
|
|
822
822
|
readonly lastOperation: SocketAsyncOperation;
|
|
@@ -824,15 +824,15 @@ export interface SocketAsyncEventArgs$instance extends EventArgs {
|
|
|
824
824
|
readonly offset: int;
|
|
825
825
|
readonly receiveMessageFromPacketInfo: IPPacketInformation;
|
|
826
826
|
remoteEndPoint: EndPoint;
|
|
827
|
-
sendPacketsElements: SendPacketsElement[];
|
|
827
|
+
sendPacketsElements: SendPacketsElement[] | undefined;
|
|
828
828
|
sendPacketsFlags: TransmitFileOptions;
|
|
829
829
|
sendPacketsSendSize: int;
|
|
830
830
|
socketError: SocketError;
|
|
831
831
|
socketFlags: SocketFlags;
|
|
832
|
-
userToken: unknown;
|
|
832
|
+
userToken: unknown | undefined;
|
|
833
833
|
dispose(): void;
|
|
834
834
|
setBuffer(offset: int, count: int): void;
|
|
835
|
-
setBuffer(buffer: byte[], offset: int, count: int): void;
|
|
835
|
+
setBuffer(buffer: byte[] | undefined, offset: int, count: int): void;
|
|
836
836
|
setBuffer(buffer: Memory_1<System_Internal.Byte>): void;
|
|
837
837
|
}
|
|
838
838
|
|
|
@@ -879,15 +879,15 @@ export interface TcpClient$instance {
|
|
|
879
879
|
client: Socket;
|
|
880
880
|
readonly connected: boolean;
|
|
881
881
|
exclusiveAddressUse: boolean;
|
|
882
|
-
lingerState: LingerOption;
|
|
882
|
+
lingerState: LingerOption | undefined;
|
|
883
883
|
noDelay: boolean;
|
|
884
884
|
receiveBufferSize: int;
|
|
885
885
|
receiveTimeout: int;
|
|
886
886
|
sendBufferSize: int;
|
|
887
887
|
sendTimeout: int;
|
|
888
|
-
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
889
|
-
beginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
890
|
-
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
888
|
+
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
889
|
+
beginConnect(host: string, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
890
|
+
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
891
891
|
close(): void;
|
|
892
892
|
connect(hostname: string, port: int): void;
|
|
893
893
|
connect(address: IPAddress, port: int): void;
|
|
@@ -974,7 +974,7 @@ export interface UdpClient$instance {
|
|
|
974
974
|
ttl: short;
|
|
975
975
|
allowNatTraversal(allowed: boolean): void;
|
|
976
976
|
beginReceive(requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
977
|
-
beginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
977
|
+
beginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
978
978
|
beginSend(datagram: byte[], bytes: int, hostname: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
979
979
|
beginSend(datagram: byte[], bytes: int, endPoint: IPEndPoint, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
980
980
|
close(): void;
|
|
@@ -984,27 +984,27 @@ export interface UdpClient$instance {
|
|
|
984
984
|
dispose(): void;
|
|
985
985
|
dropMulticastGroup(multicastAddr: IPAddress): void;
|
|
986
986
|
dropMulticastGroup(multicastAddr: IPAddress, ifindex: int): void;
|
|
987
|
-
endReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint): byte[];
|
|
987
|
+
endReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint | undefined): byte[];
|
|
988
988
|
endSend(asyncResult: IAsyncResult): int;
|
|
989
989
|
joinMulticastGroup(multicastAddr: IPAddress): void;
|
|
990
990
|
joinMulticastGroup(multicastAddr: IPAddress, localAddress: IPAddress): void;
|
|
991
991
|
joinMulticastGroup(ifindex: int, multicastAddr: IPAddress): void;
|
|
992
992
|
joinMulticastGroup(multicastAddr: IPAddress, timeToLive: int): void;
|
|
993
|
-
receive(remoteEP: IPEndPoint): byte[];
|
|
993
|
+
receive(remoteEP: IPEndPoint | undefined): byte[];
|
|
994
994
|
receiveAsync(): Task_1<UdpReceiveResult>;
|
|
995
995
|
receiveAsync(cancellationToken: CancellationToken): ValueTask_1<UdpReceiveResult>;
|
|
996
|
-
send(dgram: byte[], bytes: int, endPoint: IPEndPoint): int;
|
|
997
|
-
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint): int;
|
|
998
|
-
send(dgram: byte[], bytes: int, hostname: string, port: int): int;
|
|
999
|
-
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string, port: int): int;
|
|
996
|
+
send(dgram: byte[], bytes: int, endPoint: IPEndPoint | undefined): int;
|
|
997
|
+
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint | undefined): int;
|
|
998
|
+
send(dgram: byte[], bytes: int, hostname: string | undefined, port: int): int;
|
|
999
|
+
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string | undefined, port: int): int;
|
|
1000
1000
|
send(dgram: byte[], bytes: int): int;
|
|
1001
1001
|
send(datagram: ReadOnlySpan_1<System_Internal.Byte>): int;
|
|
1002
1002
|
sendAsync(datagram: byte[], bytes: int): Task_1<System_Internal.Int32>;
|
|
1003
1003
|
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1004
|
-
sendAsync(datagram: byte[], bytes: int, hostname: string, port: int): Task_1<System_Internal.Int32>;
|
|
1005
|
-
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1006
|
-
sendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint): Task_1<System_Internal.Int32>;
|
|
1007
|
-
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1004
|
+
sendAsync(datagram: byte[], bytes: int, hostname: string | undefined, port: int): Task_1<System_Internal.Int32>;
|
|
1005
|
+
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string | undefined, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1006
|
+
sendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint | undefined): Task_1<System_Internal.Int32>;
|
|
1007
|
+
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint | undefined, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
1010
|
|
|
@@ -1045,7 +1045,7 @@ export const UnixDomainSocketEndPoint: {
|
|
|
1045
1045
|
export type UnixDomainSocketEndPoint = UnixDomainSocketEndPoint$instance;
|
|
1046
1046
|
|
|
1047
1047
|
export abstract class SocketTaskExtensions$instance {
|
|
1048
|
-
static acceptAsync(socket: Socket, acceptSocket: Socket): Task_1<Socket>;
|
|
1048
|
+
static acceptAsync(socket: Socket, acceptSocket: Socket | undefined): Task_1<Socket>;
|
|
1049
1049
|
static acceptAsync(socket: Socket): Task_1<Socket>;
|
|
1050
1050
|
static connectAsync(socket: Socket, remoteEP: EndPoint, cancellationToken: CancellationToken): ValueTask;
|
|
1051
1051
|
static connectAsync(socket: Socket, remoteEP: EndPoint): Task;
|
|
@@ -95,17 +95,17 @@ export type ValueWebSocketReceiveResult = ValueWebSocketReceiveResult$instance;
|
|
|
95
95
|
|
|
96
96
|
export interface ClientWebSocket$instance extends WebSocket$instance {
|
|
97
97
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
98
|
-
readonly closeStatusDescription: string;
|
|
99
|
-
httpResponseHeaders: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String
|
|
98
|
+
readonly closeStatusDescription: string | undefined;
|
|
99
|
+
httpResponseHeaders: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | undefined;
|
|
100
100
|
readonly httpStatusCode: HttpStatusCode;
|
|
101
101
|
readonly options: ClientWebSocketOptions;
|
|
102
102
|
readonly state: WebSocketState;
|
|
103
|
-
readonly subProtocol: string;
|
|
103
|
+
readonly subProtocol: string | undefined;
|
|
104
104
|
abort(): void;
|
|
105
|
-
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
106
|
-
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
105
|
+
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
106
|
+
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
107
107
|
connectAsync(uri: Uri, cancellationToken: CancellationToken): Task;
|
|
108
|
-
connectAsync(uri: Uri, invoker: HttpMessageInvoker, cancellationToken: CancellationToken): Task;
|
|
108
|
+
connectAsync(uri: Uri, invoker: HttpMessageInvoker | undefined, cancellationToken: CancellationToken): Task;
|
|
109
109
|
dispose(): void;
|
|
110
110
|
receiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
|
|
111
111
|
receiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
|
|
@@ -135,18 +135,18 @@ export interface ClientWebSocketOptions$instance {
|
|
|
135
135
|
collectHttpResponseDetails: boolean;
|
|
136
136
|
cookies: CookieContainer;
|
|
137
137
|
credentials: ICredentials;
|
|
138
|
-
dangerousDeflateOptions: WebSocketDeflateOptions;
|
|
138
|
+
dangerousDeflateOptions: WebSocketDeflateOptions | undefined;
|
|
139
139
|
httpVersion: Version;
|
|
140
140
|
httpVersionPolicy: HttpVersionPolicy;
|
|
141
141
|
keepAliveInterval: TimeSpan;
|
|
142
142
|
keepAliveTimeout: TimeSpan;
|
|
143
|
-
proxy: IWebProxy;
|
|
144
|
-
remoteCertificateValidationCallback: RemoteCertificateValidationCallback;
|
|
143
|
+
proxy: IWebProxy | undefined;
|
|
144
|
+
remoteCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
145
145
|
useDefaultCredentials: boolean;
|
|
146
|
-
addSubProtocol(subProtocol: string): void;
|
|
146
|
+
addSubProtocol(subProtocol: string | undefined): void;
|
|
147
147
|
setBuffer(receiveBufferSize: int, sendBufferSize: int): void;
|
|
148
148
|
setBuffer(receiveBufferSize: int, sendBufferSize: int, buffer: ArraySegment_1<System_Internal.Byte>): void;
|
|
149
|
-
setRequestHeader(headerName: string, headerValue: string): void;
|
|
149
|
+
setRequestHeader(headerName: string | undefined, headerValue: string | undefined): void;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
|
|
@@ -182,12 +182,12 @@ export type HttpListenerWebSocketContext = HttpListenerWebSocketContext$instance
|
|
|
182
182
|
|
|
183
183
|
export interface WebSocket$instance {
|
|
184
184
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
185
|
-
readonly closeStatusDescription: string;
|
|
185
|
+
readonly closeStatusDescription: string | undefined;
|
|
186
186
|
readonly state: WebSocketState;
|
|
187
|
-
readonly subProtocol: string;
|
|
187
|
+
readonly subProtocol: string | undefined;
|
|
188
188
|
abort(): void;
|
|
189
|
-
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
190
|
-
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
189
|
+
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
190
|
+
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
191
191
|
dispose(): void;
|
|
192
192
|
receiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
|
|
193
193
|
receiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
|
|
@@ -200,8 +200,8 @@ export interface WebSocket$instance {
|
|
|
200
200
|
export const WebSocket: {
|
|
201
201
|
readonly defaultKeepAliveInterval: TimeSpan;
|
|
202
202
|
createClientBuffer(receiveBufferSize: int, sendBufferSize: int): ArraySegment_1<System_Internal.Byte>;
|
|
203
|
-
createClientWebSocket(innerStream: Stream, subProtocol: string, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
|
|
204
|
-
createFromStream(stream: Stream, isServer: boolean, subProtocol: string, keepAliveInterval: TimeSpan): WebSocket;
|
|
203
|
+
createClientWebSocket(innerStream: Stream, subProtocol: string | undefined, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
|
|
204
|
+
createFromStream(stream: Stream, isServer: boolean, subProtocol: string | undefined, keepAliveInterval: TimeSpan): WebSocket;
|
|
205
205
|
createFromStream(stream: Stream, options: WebSocketCreationOptions): WebSocket;
|
|
206
206
|
createServerBuffer(receiveBufferSize: int): ArraySegment_1<System_Internal.Byte>;
|
|
207
207
|
isApplicationTargeting45(): boolean;
|
|
@@ -241,11 +241,11 @@ export const WebSocketContext: {
|
|
|
241
241
|
export type WebSocketContext = WebSocketContext$instance;
|
|
242
242
|
|
|
243
243
|
export interface WebSocketCreationOptions$instance {
|
|
244
|
-
dangerousDeflateOptions: WebSocketDeflateOptions;
|
|
244
|
+
dangerousDeflateOptions: WebSocketDeflateOptions | undefined;
|
|
245
245
|
isServer: boolean;
|
|
246
246
|
keepAliveInterval: TimeSpan;
|
|
247
247
|
keepAliveTimeout: TimeSpan;
|
|
248
|
-
subProtocol: string;
|
|
248
|
+
subProtocol: string | undefined;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
|
|
@@ -274,25 +274,25 @@ export type WebSocketDeflateOptions = WebSocketDeflateOptions$instance;
|
|
|
274
274
|
export interface WebSocketException$instance extends Win32Exception {
|
|
275
275
|
readonly errorCode: int;
|
|
276
276
|
readonly webSocketErrorCode: WebSocketError;
|
|
277
|
-
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
277
|
+
getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
|
|
281
281
|
export const WebSocketException: {
|
|
282
282
|
new(): WebSocketException;
|
|
283
283
|
new(error: WebSocketError): WebSocketException;
|
|
284
|
-
new(error: WebSocketError, message: string): WebSocketException;
|
|
285
|
-
new(error: WebSocketError, innerException: Exception): WebSocketException;
|
|
286
|
-
new(error: WebSocketError, message: string, innerException: Exception): WebSocketException;
|
|
284
|
+
new(error: WebSocketError, message: string | undefined): WebSocketException;
|
|
285
|
+
new(error: WebSocketError, innerException: Exception | undefined): WebSocketException;
|
|
286
|
+
new(error: WebSocketError, message: string | undefined, innerException: Exception | undefined): WebSocketException;
|
|
287
287
|
new(nativeError: int): WebSocketException;
|
|
288
|
-
new(nativeError: int, message: string): WebSocketException;
|
|
289
|
-
new(nativeError: int, innerException: Exception): WebSocketException;
|
|
288
|
+
new(nativeError: int, message: string | undefined): WebSocketException;
|
|
289
|
+
new(nativeError: int, innerException: Exception | undefined): WebSocketException;
|
|
290
290
|
new(error: WebSocketError, nativeError: int): WebSocketException;
|
|
291
|
-
new(error: WebSocketError, nativeError: int, message: string): WebSocketException;
|
|
292
|
-
new(error: WebSocketError, nativeError: int, innerException: Exception): WebSocketException;
|
|
293
|
-
new(error: WebSocketError, nativeError: int, message: string, innerException: Exception): WebSocketException;
|
|
294
|
-
new(message: string): WebSocketException;
|
|
295
|
-
new(message: string, innerException: Exception): WebSocketException;
|
|
291
|
+
new(error: WebSocketError, nativeError: int, message: string | undefined): WebSocketException;
|
|
292
|
+
new(error: WebSocketError, nativeError: int, innerException: Exception | undefined): WebSocketException;
|
|
293
|
+
new(error: WebSocketError, nativeError: int, message: string | undefined, innerException: Exception | undefined): WebSocketException;
|
|
294
|
+
new(message: string | undefined): WebSocketException;
|
|
295
|
+
new(message: string | undefined, innerException: Exception | undefined): WebSocketException;
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
|
|
@@ -305,7 +305,7 @@ export type WebSocketException = WebSocketException$instance & __WebSocketExcept
|
|
|
305
305
|
|
|
306
306
|
export interface WebSocketReceiveResult$instance {
|
|
307
307
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
308
|
-
readonly closeStatusDescription: string;
|
|
308
|
+
readonly closeStatusDescription: string | undefined;
|
|
309
309
|
readonly count: int;
|
|
310
310
|
readonly endOfMessage: boolean;
|
|
311
311
|
readonly messageType: WebSocketMessageType;
|
|
@@ -314,7 +314,7 @@ export interface WebSocketReceiveResult$instance {
|
|
|
314
314
|
|
|
315
315
|
export const WebSocketReceiveResult: {
|
|
316
316
|
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): WebSocketReceiveResult;
|
|
317
|
-
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string): WebSocketReceiveResult;
|
|
317
|
+
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string | undefined): WebSocketReceiveResult;
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
|
|
@@ -327,8 +327,8 @@ export interface WebSocketStream$instance extends Stream {
|
|
|
327
327
|
readonly length: long;
|
|
328
328
|
position: long;
|
|
329
329
|
readonly webSocket: WebSocket;
|
|
330
|
-
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
331
|
-
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
330
|
+
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
331
|
+
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
332
332
|
dispose(): void;
|
|
333
333
|
disposeAsync(): ValueTask;
|
|
334
334
|
endRead(asyncResult: IAsyncResult): int;
|