@tsonic/dotnet 0.8.2 → 0.8.4
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.CompilerServices/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
- package/Microsoft.Win32/internal/index.d.ts +10 -10
- package/System/internal/index.d.ts +964 -950
- package/System.Buffers/internal/index.d.ts +2 -2
- package/System.Buffers.d.ts +3 -0
- package/System.CodeDom.Compiler/internal/index.d.ts +10 -10
- package/System.Collections/internal/index.d.ts +30 -24
- 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.Frozen.d.ts +3 -0
- package/System.Collections.Generic/bindings.json +20 -44
- package/System.Collections.Generic/internal/index.d.ts +54 -54
- package/System.Collections.Generic/internal/metadata.json +10 -26
- package/System.Collections.Generic.d.ts +3 -0
- package/System.Collections.Immutable/internal/index.d.ts +88 -88
- package/System.Collections.Immutable.d.ts +3 -0
- package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
- package/System.Collections.Specialized/internal/index.d.ts +53 -49
- package/System.ComponentModel/internal/index.d.ts +388 -376
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +55 -45
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +3 -2
- package/System.ComponentModel.Design/internal/index.d.ts +36 -36
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +20 -20
- package/System.Data/internal/index.d.ts +171 -163
- package/System.Data.Common/internal/index.d.ts +36 -28
- package/System.Data.Common.d.ts +3 -0
- package/System.Data.SqlTypes/internal/index.d.ts +23 -23
- package/System.Data.d.ts +3 -0
- package/System.Diagnostics/internal/index.d.ts +250 -228
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +37 -23
- package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
- package/System.Diagnostics.Metrics/internal/index.d.ts +34 -29
- package/System.Diagnostics.Metrics.d.ts +3 -0
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +4 -4
- package/System.Diagnostics.Tracing/internal/index.d.ts +26 -24
- package/System.Diagnostics.d.ts +3 -0
- package/System.Drawing/internal/index.d.ts +76 -76
- package/System.Dynamic/internal/index.d.ts +26 -26
- package/System.Formats.Asn1/internal/index.d.ts +4 -4
- package/System.Formats.Tar/internal/index.d.ts +5 -4
- package/System.Globalization/internal/index.d.ts +22 -20
- package/System.Globalization.d.ts +3 -0
- package/System.IO/internal/index.d.ts +106 -103
- package/System.IO.Compression/internal/index.d.ts +24 -24
- package/System.IO.Compression.d.ts +3 -0
- package/System.IO.Enumeration/internal/index.d.ts +7 -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.Pipelines.d.ts +3 -0
- package/System.IO.Pipes/internal/index.d.ts +4 -4
- package/System.IO.Pipes.d.ts +3 -0
- package/System.IO.d.ts +3 -0
- package/System.Linq/internal/index.d.ts +207 -207
- package/System.Linq.Expressions/internal/index.d.ts +160 -160
- package/System.Linq.d.ts +3 -0
- package/System.Net/internal/index.d.ts +157 -131
- package/System.Net.Cache/internal/index.d.ts +2 -2
- package/System.Net.Http/internal/index.d.ts +69 -53
- package/System.Net.Http.Headers/internal/index.d.ts +62 -45
- package/System.Net.Http.Json/internal/index.d.ts +38 -38
- package/System.Net.Http.Json.d.ts +3 -0
- package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
- package/System.Net.Mail/internal/index.d.ts +80 -70
- package/System.Net.Mime/internal/index.d.ts +4 -2
- package/System.Net.NetworkInformation/internal/index.d.ts +23 -23
- package/System.Net.Quic/internal/index.d.ts +4 -3
- package/System.Net.Security/internal/index.d.ts +65 -49
- package/System.Net.ServerSentEvents/internal/index.d.ts +3 -2
- package/System.Net.Sockets/internal/index.d.ts +49 -42
- package/System.Net.Sockets.d.ts +3 -0
- package/System.Net.WebSockets/internal/index.d.ts +35 -29
- package/System.Numerics/bindings.json +96 -72
- package/System.Numerics/internal/index.d.ts +93 -91
- package/System.Numerics/internal/metadata.json +64 -48
- package/System.Numerics.d.ts +3 -0
- package/System.Reflection/internal/index.d.ts +129 -126
- package/System.Reflection.Emit/internal/index.d.ts +105 -105
- package/System.Reflection.Metadata/internal/index.d.ts +15 -15
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
- package/System.Reflection.Metadata.Ecma335.d.ts +3 -0
- package/System.Reflection.Metadata.d.ts +3 -0
- package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
- package/System.Reflection.d.ts +3 -0
- package/System.Resources/internal/index.d.ts +20 -19
- package/System.Runtime/internal/index.d.ts +6 -5
- package/System.Runtime.CompilerServices/internal/index.d.ts +30 -28
- package/System.Runtime.InteropServices/internal/index.d.ts +85 -83
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +9 -9
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +20 -20
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +28 -26
- package/System.Runtime.InteropServices.d.ts +3 -0
- package/System.Runtime.Intrinsics.d.ts +3 -0
- package/System.Runtime.Loader/internal/index.d.ts +2 -2
- package/System.Runtime.Remoting/internal/index.d.ts +1 -1
- package/System.Runtime.Serialization/internal/index.d.ts +66 -54
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +3 -3
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +4 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -4
- package/System.Runtime.Serialization.Json/internal/index.d.ts +22 -21
- package/System.Runtime.Serialization.Json.d.ts +3 -0
- package/System.Runtime.Serialization.d.ts +3 -0
- package/System.Runtime.Versioning/internal/index.d.ts +12 -9
- package/System.Security/internal/index.d.ts +62 -52
- package/System.Security.AccessControl/internal/index.d.ts +29 -25
- package/System.Security.Authentication/internal/index.d.ts +4 -4
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +8 -8
- package/System.Security.Claims/internal/index.d.ts +21 -15
- package/System.Security.Cryptography/bindings.json +4212 -4212
- package/System.Security.Cryptography/internal/index.d.ts +155 -141
- package/System.Security.Cryptography.X509Certificates/bindings.json +768 -768
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +83 -82
- package/System.Security.Cryptography.X509Certificates.d.ts +3 -0
- package/System.Security.Permissions/internal/index.d.ts +2 -2
- package/System.Security.Principal/internal/index.d.ts +3 -3
- package/System.Text/internal/index.d.ts +48 -46
- package/System.Text.Json/internal/index.d.ts +87 -81
- package/System.Text.Json.Nodes/internal/index.d.ts +41 -41
- package/System.Text.Json.Schema/internal/index.d.ts +4 -3
- package/System.Text.Json.Schema.d.ts +3 -0
- package/System.Text.Json.Serialization/internal/index.d.ts +5 -4
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +55 -30
- package/System.Text.Json.Serialization.Metadata.d.ts +3 -0
- package/System.Text.Json.d.ts +3 -0
- package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
- package/System.Text.Unicode/internal/index.d.ts +4 -4
- package/System.Text.d.ts +3 -0
- package/System.Threading/internal/index.d.ts +86 -85
- package/System.Threading.Channels/internal/index.d.ts +8 -8
- package/System.Threading.Tasks/internal/index.d.ts +82 -82
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +25 -26
- package/System.Threading.Tasks.Dataflow.d.ts +3 -0
- package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
- package/System.Threading.Tasks.d.ts +3 -0
- package/System.Threading.d.ts +3 -0
- package/System.Timers/internal/index.d.ts +5 -3
- package/System.Transactions/internal/index.d.ts +18 -16
- package/System.Web/internal/index.d.ts +30 -30
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +162 -161
- package/System.Xml.Linq/internal/index.d.ts +38 -37
- package/System.Xml.Linq.d.ts +3 -0
- package/System.Xml.Resolvers/internal/index.d.ts +5 -5
- package/System.Xml.Schema/internal/index.d.ts +133 -88
- package/System.Xml.Schema.d.ts +3 -0
- package/System.Xml.Serialization/internal/index.d.ts +138 -117
- package/System.Xml.XPath/internal/index.d.ts +12 -12
- package/System.Xml.XPath.d.ts +3 -0
- package/System.Xml.Xsl/internal/index.d.ts +34 -34
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +16 -16
- package/System.d.ts +3 -0
- package/__internal/extensions/index.d.ts +2516 -2196
- package/package.json +2 -2
|
@@ -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
|
|
420
|
+
export type LocalCertificateSelectionCallback = (sender: unknown, targetHost: string, localCertificates: X509CertificateCollection, remoteCertificate: X509Certificate, 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
|
|
426
|
+
export type ServerCertificateSelectionCallback = (sender: unknown, hostName: string) => X509Certificate;
|
|
427
427
|
|
|
428
428
|
|
|
429
|
-
export type ServerOptionsSelectionCallback = (stream: SslStream, clientHelloInfo: SslClientHelloInfo, state: unknown
|
|
429
|
+
export type ServerOptionsSelectionCallback = (stream: SslStream, clientHelloInfo: SslClientHelloInfo, state: unknown, 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;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
|
|
@@ -520,7 +520,7 @@ export interface NegotiateAuthentication$instance {
|
|
|
520
520
|
computeIntegrityCheck(message: ReadOnlySpan_1<System_Internal.Byte>, signatureWriter: IBufferWriter_1<System_Internal.Byte>): void;
|
|
521
521
|
dispose(): void;
|
|
522
522
|
getOutgoingBlob(incomingBlob: ReadOnlySpan_1<System_Internal.Byte>, statusCode: NegotiateAuthenticationStatusCode): byte[] | undefined;
|
|
523
|
-
getOutgoingBlob(incomingBlob: string, statusCode: NegotiateAuthenticationStatusCode): string;
|
|
523
|
+
getOutgoingBlob(incomingBlob: string, statusCode: NegotiateAuthenticationStatusCode): string | undefined;
|
|
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;
|
|
526
526
|
verifyIntegrityCheck(message: ReadOnlySpan_1<System_Internal.Byte>, signature: ReadOnlySpan_1<System_Internal.Byte>): boolean;
|
|
@@ -545,12 +545,14 @@ export type NegotiateAuthentication = NegotiateAuthentication$instance & __Negot
|
|
|
545
545
|
|
|
546
546
|
export interface NegotiateAuthenticationClientOptions$instance {
|
|
547
547
|
allowedImpersonationLevel: TokenImpersonationLevel;
|
|
548
|
-
binding: ChannelBinding | undefined;
|
|
548
|
+
get binding(): ChannelBinding | undefined;
|
|
549
|
+
set binding(value: ChannelBinding);
|
|
549
550
|
credential: NetworkCredential;
|
|
550
551
|
package_: string;
|
|
551
552
|
requiredProtectionLevel: ProtectionLevel;
|
|
552
553
|
requireMutualAuthentication: boolean;
|
|
553
|
-
targetName: string | undefined;
|
|
554
|
+
get targetName(): string | undefined;
|
|
555
|
+
set targetName(value: string);
|
|
554
556
|
}
|
|
555
557
|
|
|
556
558
|
|
|
@@ -562,10 +564,12 @@ export const NegotiateAuthenticationClientOptions: {
|
|
|
562
564
|
export type NegotiateAuthenticationClientOptions = NegotiateAuthenticationClientOptions$instance;
|
|
563
565
|
|
|
564
566
|
export interface NegotiateAuthenticationServerOptions$instance {
|
|
565
|
-
binding: ChannelBinding | undefined;
|
|
567
|
+
get binding(): ChannelBinding | undefined;
|
|
568
|
+
set binding(value: ChannelBinding);
|
|
566
569
|
credential: NetworkCredential;
|
|
567
570
|
package_: string;
|
|
568
|
-
policy: ExtendedProtectionPolicy | undefined;
|
|
571
|
+
get policy(): ExtendedProtectionPolicy | undefined;
|
|
572
|
+
set policy(value: ExtendedProtectionPolicy);
|
|
569
573
|
requiredImpersonationLevel: TokenImpersonationLevel;
|
|
570
574
|
requiredProtectionLevel: ProtectionLevel;
|
|
571
575
|
}
|
|
@@ -596,33 +600,33 @@ export interface NegotiateStream$instance extends AuthenticatedStream$instance {
|
|
|
596
600
|
writeTimeout: int;
|
|
597
601
|
authenticateAsClient(): void;
|
|
598
602
|
authenticateAsClient(credential: NetworkCredential, targetName: string): void;
|
|
599
|
-
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding
|
|
603
|
+
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string): void;
|
|
600
604
|
authenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
|
|
601
|
-
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding
|
|
605
|
+
authenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
|
|
602
606
|
authenticateAsClientAsync(): Task;
|
|
603
607
|
authenticateAsClientAsync(credential: NetworkCredential, targetName: string): Task;
|
|
604
608
|
authenticateAsClientAsync(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
|
|
605
|
-
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding
|
|
606
|
-
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding
|
|
609
|
+
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding, targetName: string): Task;
|
|
610
|
+
authenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
|
|
607
611
|
authenticateAsServer(): void;
|
|
608
612
|
authenticateAsServer(policy: ExtendedProtectionPolicy): void;
|
|
609
613
|
authenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
|
|
610
|
-
authenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy
|
|
614
|
+
authenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
|
|
611
615
|
authenticateAsServerAsync(): Task;
|
|
612
|
-
authenticateAsServerAsync(policy: ExtendedProtectionPolicy
|
|
616
|
+
authenticateAsServerAsync(policy: ExtendedProtectionPolicy): Task;
|
|
613
617
|
authenticateAsServerAsync(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
|
|
614
|
-
authenticateAsServerAsync(credential: NetworkCredential, policy: ExtendedProtectionPolicy
|
|
618
|
+
authenticateAsServerAsync(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
|
|
615
619
|
beginAuthenticateAsClient(asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
616
|
-
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, asyncCallback: AsyncCallback
|
|
617
|
-
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding
|
|
618
|
-
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback
|
|
619
|
-
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding
|
|
620
|
+
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
621
|
+
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
622
|
+
beginAuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
623
|
+
beginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
620
624
|
beginAuthenticateAsServer(asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
621
625
|
beginAuthenticateAsServer(policy: ExtendedProtectionPolicy, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
622
|
-
beginAuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback
|
|
626
|
+
beginAuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
623
627
|
beginAuthenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
624
|
-
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback
|
|
625
|
-
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback
|
|
628
|
+
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
629
|
+
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
626
630
|
dispose(): void;
|
|
627
631
|
disposeAsync(): ValueTask;
|
|
628
632
|
endAuthenticateAsClient(asyncResult: IAsyncResult): void;
|
|
@@ -683,16 +687,22 @@ export interface SslClientAuthenticationOptions$instance {
|
|
|
683
687
|
allowRsaPssPadding: boolean;
|
|
684
688
|
allowTlsResume: boolean;
|
|
685
689
|
applicationProtocols: List_1<SslApplicationProtocol>;
|
|
686
|
-
certificateChainPolicy: X509ChainPolicy | undefined;
|
|
690
|
+
get certificateChainPolicy(): X509ChainPolicy | undefined;
|
|
691
|
+
set certificateChainPolicy(value: X509ChainPolicy);
|
|
687
692
|
certificateRevocationCheckMode: X509RevocationMode;
|
|
688
|
-
cipherSuitesPolicy: CipherSuitesPolicy | undefined;
|
|
689
|
-
|
|
693
|
+
get cipherSuitesPolicy(): CipherSuitesPolicy | undefined;
|
|
694
|
+
set cipherSuitesPolicy(value: CipherSuitesPolicy);
|
|
695
|
+
get clientCertificateContext(): SslStreamCertificateContext | undefined;
|
|
696
|
+
set clientCertificateContext(value: SslStreamCertificateContext);
|
|
690
697
|
clientCertificates: X509CertificateCollection;
|
|
691
698
|
enabledSslProtocols: SslProtocols;
|
|
692
699
|
encryptionPolicy: EncryptionPolicy;
|
|
693
|
-
localCertificateSelectionCallback: LocalCertificateSelectionCallback | undefined;
|
|
694
|
-
|
|
695
|
-
|
|
700
|
+
get localCertificateSelectionCallback(): LocalCertificateSelectionCallback | undefined;
|
|
701
|
+
set localCertificateSelectionCallback(value: LocalCertificateSelectionCallback);
|
|
702
|
+
get remoteCertificateValidationCallback(): RemoteCertificateValidationCallback | undefined;
|
|
703
|
+
set remoteCertificateValidationCallback(value: RemoteCertificateValidationCallback);
|
|
704
|
+
get targetHost(): string | undefined;
|
|
705
|
+
set targetHost(value: string);
|
|
696
706
|
}
|
|
697
707
|
|
|
698
708
|
|
|
@@ -709,16 +719,22 @@ export interface SslServerAuthenticationOptions$instance {
|
|
|
709
719
|
allowRsaPssPadding: boolean;
|
|
710
720
|
allowTlsResume: boolean;
|
|
711
721
|
applicationProtocols: List_1<SslApplicationProtocol>;
|
|
712
|
-
certificateChainPolicy: X509ChainPolicy | undefined;
|
|
722
|
+
get certificateChainPolicy(): X509ChainPolicy | undefined;
|
|
723
|
+
set certificateChainPolicy(value: X509ChainPolicy);
|
|
713
724
|
certificateRevocationCheckMode: X509RevocationMode;
|
|
714
|
-
cipherSuitesPolicy: CipherSuitesPolicy | undefined;
|
|
725
|
+
get cipherSuitesPolicy(): CipherSuitesPolicy | undefined;
|
|
726
|
+
set cipherSuitesPolicy(value: CipherSuitesPolicy);
|
|
715
727
|
clientCertificateRequired: boolean;
|
|
716
728
|
enabledSslProtocols: SslProtocols;
|
|
717
729
|
encryptionPolicy: EncryptionPolicy;
|
|
718
|
-
remoteCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
730
|
+
get remoteCertificateValidationCallback(): RemoteCertificateValidationCallback | undefined;
|
|
731
|
+
set remoteCertificateValidationCallback(value: RemoteCertificateValidationCallback);
|
|
732
|
+
get serverCertificate(): X509Certificate | undefined;
|
|
733
|
+
set serverCertificate(value: X509Certificate);
|
|
734
|
+
get serverCertificateContext(): SslStreamCertificateContext | undefined;
|
|
735
|
+
set serverCertificateContext(value: SslStreamCertificateContext);
|
|
736
|
+
get serverCertificateSelectionCallback(): ServerCertificateSelectionCallback | undefined;
|
|
737
|
+
set serverCertificateSelectionCallback(value: ServerCertificateSelectionCallback);
|
|
722
738
|
}
|
|
723
739
|
|
|
724
740
|
|
|
@@ -758,12 +774,12 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
|
|
|
758
774
|
readonly transportContext: TransportContext;
|
|
759
775
|
writeTimeout: int;
|
|
760
776
|
authenticateAsClient(targetHost: string): void;
|
|
761
|
-
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection
|
|
762
|
-
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection
|
|
777
|
+
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean): void;
|
|
778
|
+
authenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): void;
|
|
763
779
|
authenticateAsClient(sslClientAuthenticationOptions: SslClientAuthenticationOptions): void;
|
|
764
780
|
authenticateAsClientAsync(targetHost: string): Task;
|
|
765
|
-
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection
|
|
766
|
-
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection
|
|
781
|
+
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean): Task;
|
|
782
|
+
authenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
|
|
767
783
|
authenticateAsClientAsync(sslClientAuthenticationOptions: SslClientAuthenticationOptions, cancellationToken?: CancellationToken): Task;
|
|
768
784
|
authenticateAsServer(serverCertificate: X509Certificate): void;
|
|
769
785
|
authenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean): void;
|
|
@@ -773,15 +789,15 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
|
|
|
773
789
|
authenticateAsServerAsync(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean): Task;
|
|
774
790
|
authenticateAsServerAsync(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
|
|
775
791
|
authenticateAsServerAsync(sslServerAuthenticationOptions: SslServerAuthenticationOptions, cancellationToken?: CancellationToken): Task;
|
|
776
|
-
authenticateAsServerAsync(optionsCallback: ServerOptionsSelectionCallback, state: unknown
|
|
777
|
-
beginAuthenticateAsClient(targetHost: string, asyncCallback: AsyncCallback
|
|
792
|
+
authenticateAsServerAsync(optionsCallback: ServerOptionsSelectionCallback, state: unknown, cancellationToken?: CancellationToken): Task;
|
|
793
|
+
beginAuthenticateAsClient(targetHost: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
778
794
|
beginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
779
795
|
beginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
780
|
-
beginAuthenticateAsServer(serverCertificate: X509Certificate, asyncCallback: AsyncCallback
|
|
781
|
-
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback
|
|
782
|
-
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback
|
|
783
|
-
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback
|
|
784
|
-
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback
|
|
796
|
+
beginAuthenticateAsServer(serverCertificate: X509Certificate, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
797
|
+
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
798
|
+
beginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
799
|
+
beginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
800
|
+
beginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
|
|
785
801
|
dispose(): void;
|
|
786
802
|
disposeAsync(): ValueTask;
|
|
787
803
|
endAuthenticateAsClient(asyncResult: IAsyncResult): void;
|
|
@@ -819,7 +835,7 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
|
|
|
819
835
|
export const SslStream: {
|
|
820
836
|
new(innerStream: Stream): SslStream;
|
|
821
837
|
new(innerStream: Stream, leaveInnerStreamOpen: boolean): SslStream;
|
|
822
|
-
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback
|
|
838
|
+
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback): SslStream;
|
|
823
839
|
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback, userCertificateSelectionCallback: LocalCertificateSelectionCallback): SslStream;
|
|
824
840
|
new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback, userCertificateSelectionCallback: LocalCertificateSelectionCallback, encryptionPolicy: EncryptionPolicy): SslStream;
|
|
825
841
|
};
|
|
@@ -841,8 +857,8 @@ export interface SslStreamCertificateContext$instance {
|
|
|
841
857
|
|
|
842
858
|
export const SslStreamCertificateContext: {
|
|
843
859
|
new(): SslStreamCertificateContext;
|
|
844
|
-
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection
|
|
845
|
-
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection
|
|
860
|
+
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection, offline?: boolean, trust?: SslCertificateTrust): SslStreamCertificateContext;
|
|
861
|
+
create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection, offline: boolean): SslStreamCertificateContext;
|
|
846
862
|
};
|
|
847
863
|
|
|
848
864
|
|
|
@@ -22,14 +22,15 @@ 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 | undefined;
|
|
25
|
+
get eventId(): string | undefined;
|
|
26
|
+
set eventId(value: string);
|
|
26
27
|
readonly eventType: string;
|
|
27
28
|
reconnectionInterval: Nullable_1<TimeSpan>;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
export const SseItem_1: {
|
|
32
|
-
new<T>(data: T, eventType: string
|
|
33
|
+
new<T>(data: T, eventType: string): SseItem_1<T>;
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
|
|
@@ -480,7 +480,8 @@ export type LingerOption = LingerOption$instance;
|
|
|
480
480
|
export interface MulticastOption$instance {
|
|
481
481
|
group: IPAddress;
|
|
482
482
|
interfaceIndex: int;
|
|
483
|
-
localAddress: IPAddress | undefined;
|
|
483
|
+
get localAddress(): IPAddress | undefined;
|
|
484
|
+
set localAddress(value: IPAddress);
|
|
484
485
|
}
|
|
485
486
|
|
|
486
487
|
|
|
@@ -504,8 +505,8 @@ export interface NetworkStream$instance extends Stream {
|
|
|
504
505
|
readTimeout: int;
|
|
505
506
|
readonly socket: Socket;
|
|
506
507
|
writeTimeout: int;
|
|
507
|
-
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback
|
|
508
|
-
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback
|
|
508
|
+
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
509
|
+
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
509
510
|
close(timeout: TimeSpan): void;
|
|
510
511
|
close(): void;
|
|
511
512
|
dispose(): void;
|
|
@@ -614,7 +615,8 @@ export interface Socket$instance {
|
|
|
614
615
|
exclusiveAddressUse: boolean;
|
|
615
616
|
readonly handle: nint;
|
|
616
617
|
readonly isBound: boolean;
|
|
617
|
-
lingerState: LingerOption | undefined;
|
|
618
|
+
get lingerState(): LingerOption | undefined;
|
|
619
|
+
set lingerState(value: LingerOption);
|
|
618
620
|
readonly localEndPoint: EndPoint;
|
|
619
621
|
multicastLoopback: boolean;
|
|
620
622
|
noDelay: boolean;
|
|
@@ -632,29 +634,29 @@ export interface Socket$instance {
|
|
|
632
634
|
acceptAsync(e: SocketAsyncEventArgs): boolean;
|
|
633
635
|
acceptAsync(): Task_1<Socket>;
|
|
634
636
|
acceptAsync(cancellationToken: CancellationToken): ValueTask_1<Socket>;
|
|
635
|
-
acceptAsync(acceptSocket: Socket
|
|
637
|
+
acceptAsync(acceptSocket: Socket): Task_1<Socket>;
|
|
636
638
|
acceptAsync(acceptSocket: Socket, cancellationToken: CancellationToken): ValueTask_1<Socket>;
|
|
637
639
|
beginAccept(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
638
640
|
beginAccept(receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
639
641
|
beginAccept(acceptSocket: Socket, receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
640
|
-
beginConnect(remoteEP: EndPoint, callback: AsyncCallback
|
|
641
|
-
beginConnect(host: string, port: int, requestCallback: AsyncCallback
|
|
642
|
-
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback
|
|
643
|
-
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback
|
|
642
|
+
beginConnect(remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
643
|
+
beginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
644
|
+
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
645
|
+
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
644
646
|
beginDisconnect(reuseSocket: boolean, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
645
|
-
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback
|
|
646
|
-
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
647
|
+
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
648
|
+
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
|
|
647
649
|
beginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
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
|
|
650
|
-
beginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback
|
|
651
|
-
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback
|
|
652
|
-
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
650
|
+
beginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
|
|
651
|
+
beginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
652
|
+
beginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
653
|
+
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
654
|
+
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
|
|
653
655
|
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
654
|
-
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
656
|
+
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
|
|
655
657
|
beginSendFile(fileName: string, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
656
658
|
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
|
|
659
|
+
beginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
658
660
|
bind(localEP: EndPoint): void;
|
|
659
661
|
close(): void;
|
|
660
662
|
close(timeout: int): void;
|
|
@@ -690,7 +692,7 @@ export interface Socket$instance {
|
|
|
690
692
|
endSendFile(asyncResult: IAsyncResult): void;
|
|
691
693
|
endSendTo(asyncResult: IAsyncResult): int;
|
|
692
694
|
getRawSocketOption(optionLevel: int, optionName: int, optionValue: Span_1<System_Internal.Byte>): int;
|
|
693
|
-
getSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName): unknown;
|
|
695
|
+
getSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName): unknown | undefined;
|
|
694
696
|
getSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: byte[]): void;
|
|
695
697
|
getSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionLength: int): byte[];
|
|
696
698
|
ioControl(ioControlCode: int, optionInValue: byte[], optionOutValue: byte[]): int;
|
|
@@ -757,9 +759,9 @@ export interface Socket$instance {
|
|
|
757
759
|
sendAsync(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags): Task_1<System_Internal.Int32>;
|
|
758
760
|
sendFile(fileName: string): void;
|
|
759
761
|
sendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions): void;
|
|
760
|
-
sendFile(fileName: string
|
|
762
|
+
sendFile(fileName: string, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
|
|
761
763
|
sendFileAsync(fileName: string, cancellationToken?: CancellationToken): ValueTask;
|
|
762
|
-
sendFileAsync(fileName: string
|
|
764
|
+
sendFileAsync(fileName: string, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
|
|
763
765
|
sendPacketsAsync(e: SocketAsyncEventArgs): boolean;
|
|
764
766
|
sendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
|
|
765
767
|
sendTo(buffer: byte[], size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
|
|
@@ -811,9 +813,11 @@ export type Socket = Socket$instance & __Socket$views;
|
|
|
811
813
|
|
|
812
814
|
|
|
813
815
|
export interface SocketAsyncEventArgs$instance extends EventArgs {
|
|
814
|
-
acceptSocket: Socket | undefined;
|
|
816
|
+
get acceptSocket(): Socket | undefined;
|
|
817
|
+
set acceptSocket(value: Socket);
|
|
815
818
|
readonly buffer: byte[];
|
|
816
|
-
bufferList: IList_1<ArraySegment_1<System_Internal.Byte>> | undefined;
|
|
819
|
+
get bufferList(): IList_1<ArraySegment_1<System_Internal.Byte>> | undefined;
|
|
820
|
+
set bufferList(value: IList_1<ArraySegment_1<System_Internal.Byte>>);
|
|
817
821
|
readonly bytesTransferred: int;
|
|
818
822
|
readonly connectByNameError: Exception | undefined;
|
|
819
823
|
readonly connectSocket: Socket | undefined;
|
|
@@ -824,15 +828,17 @@ export interface SocketAsyncEventArgs$instance extends EventArgs {
|
|
|
824
828
|
readonly offset: int;
|
|
825
829
|
readonly receiveMessageFromPacketInfo: IPPacketInformation;
|
|
826
830
|
remoteEndPoint: EndPoint;
|
|
827
|
-
sendPacketsElements: SendPacketsElement[] | undefined;
|
|
831
|
+
get sendPacketsElements(): SendPacketsElement[] | undefined;
|
|
832
|
+
set sendPacketsElements(value: SendPacketsElement[]);
|
|
828
833
|
sendPacketsFlags: TransmitFileOptions;
|
|
829
834
|
sendPacketsSendSize: int;
|
|
830
835
|
socketError: SocketError;
|
|
831
836
|
socketFlags: SocketFlags;
|
|
832
|
-
userToken: unknown | undefined;
|
|
837
|
+
get userToken(): unknown | undefined;
|
|
838
|
+
set userToken(value: unknown);
|
|
833
839
|
dispose(): void;
|
|
834
840
|
setBuffer(offset: int, count: int): void;
|
|
835
|
-
setBuffer(buffer: byte[]
|
|
841
|
+
setBuffer(buffer: byte[], offset: int, count: int): void;
|
|
836
842
|
setBuffer(buffer: Memory_1<System_Internal.Byte>): void;
|
|
837
843
|
}
|
|
838
844
|
|
|
@@ -879,15 +885,16 @@ export interface TcpClient$instance {
|
|
|
879
885
|
client: Socket;
|
|
880
886
|
readonly connected: boolean;
|
|
881
887
|
exclusiveAddressUse: boolean;
|
|
882
|
-
lingerState: LingerOption | undefined;
|
|
888
|
+
get lingerState(): LingerOption | undefined;
|
|
889
|
+
set lingerState(value: LingerOption);
|
|
883
890
|
noDelay: boolean;
|
|
884
891
|
receiveBufferSize: int;
|
|
885
892
|
receiveTimeout: int;
|
|
886
893
|
sendBufferSize: int;
|
|
887
894
|
sendTimeout: int;
|
|
888
|
-
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback
|
|
889
|
-
beginConnect(host: string, port: int, requestCallback: AsyncCallback
|
|
890
|
-
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback
|
|
895
|
+
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
896
|
+
beginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
897
|
+
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
891
898
|
close(): void;
|
|
892
899
|
connect(hostname: string, port: int): void;
|
|
893
900
|
connect(address: IPAddress, port: int): void;
|
|
@@ -974,7 +981,7 @@ export interface UdpClient$instance {
|
|
|
974
981
|
ttl: short;
|
|
975
982
|
allowNatTraversal(allowed: boolean): void;
|
|
976
983
|
beginReceive(requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
977
|
-
beginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback
|
|
984
|
+
beginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
978
985
|
beginSend(datagram: byte[], bytes: int, hostname: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
979
986
|
beginSend(datagram: byte[], bytes: int, endPoint: IPEndPoint, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
980
987
|
close(): void;
|
|
@@ -984,27 +991,27 @@ export interface UdpClient$instance {
|
|
|
984
991
|
dispose(): void;
|
|
985
992
|
dropMulticastGroup(multicastAddr: IPAddress): void;
|
|
986
993
|
dropMulticastGroup(multicastAddr: IPAddress, ifindex: int): void;
|
|
987
|
-
endReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint
|
|
994
|
+
endReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint): byte[];
|
|
988
995
|
endSend(asyncResult: IAsyncResult): int;
|
|
989
996
|
joinMulticastGroup(multicastAddr: IPAddress): void;
|
|
990
997
|
joinMulticastGroup(multicastAddr: IPAddress, localAddress: IPAddress): void;
|
|
991
998
|
joinMulticastGroup(ifindex: int, multicastAddr: IPAddress): void;
|
|
992
999
|
joinMulticastGroup(multicastAddr: IPAddress, timeToLive: int): void;
|
|
993
|
-
receive(remoteEP: IPEndPoint
|
|
1000
|
+
receive(remoteEP: IPEndPoint): byte[];
|
|
994
1001
|
receiveAsync(): Task_1<UdpReceiveResult>;
|
|
995
1002
|
receiveAsync(cancellationToken: CancellationToken): ValueTask_1<UdpReceiveResult>;
|
|
996
|
-
send(dgram: byte[], bytes: int, endPoint: IPEndPoint
|
|
997
|
-
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint
|
|
998
|
-
send(dgram: byte[], bytes: int, hostname: string
|
|
999
|
-
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string
|
|
1003
|
+
send(dgram: byte[], bytes: int, endPoint: IPEndPoint): int;
|
|
1004
|
+
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint): int;
|
|
1005
|
+
send(dgram: byte[], bytes: int, hostname: string, port: int): int;
|
|
1006
|
+
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string, port: int): int;
|
|
1000
1007
|
send(dgram: byte[], bytes: int): int;
|
|
1001
1008
|
send(datagram: ReadOnlySpan_1<System_Internal.Byte>): int;
|
|
1002
1009
|
sendAsync(datagram: byte[], bytes: int): Task_1<System_Internal.Int32>;
|
|
1003
1010
|
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1004
|
-
sendAsync(datagram: byte[], bytes: int, hostname: string
|
|
1005
|
-
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string
|
|
1006
|
-
sendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint
|
|
1007
|
-
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint
|
|
1011
|
+
sendAsync(datagram: byte[], bytes: int, hostname: string, port: int): Task_1<System_Internal.Int32>;
|
|
1012
|
+
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1013
|
+
sendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint): Task_1<System_Internal.Int32>;
|
|
1014
|
+
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1008
1015
|
}
|
|
1009
1016
|
|
|
1010
1017
|
|
|
@@ -1045,7 +1052,7 @@ export const UnixDomainSocketEndPoint: {
|
|
|
1045
1052
|
export type UnixDomainSocketEndPoint = UnixDomainSocketEndPoint$instance;
|
|
1046
1053
|
|
|
1047
1054
|
export abstract class SocketTaskExtensions$instance {
|
|
1048
|
-
static acceptAsync(socket: Socket, acceptSocket: Socket
|
|
1055
|
+
static acceptAsync(socket: Socket, acceptSocket: Socket): Task_1<Socket>;
|
|
1049
1056
|
static acceptAsync(socket: Socket): Task_1<Socket>;
|
|
1050
1057
|
static connectAsync(socket: Socket, remoteEP: EndPoint, cancellationToken: CancellationToken): ValueTask;
|
|
1051
1058
|
static connectAsync(socket: Socket, remoteEP: EndPoint): Task;
|
package/System.Net.Sockets.d.ts
CHANGED
|
@@ -53,3 +53,6 @@ export { UnixDomainSocketEndPoint as UnixDomainSocketEndPoint } from './System.N
|
|
|
53
53
|
export { ProtocolFamily as ProtocolFamily } from './System.Net.Sockets/internal/index.js';
|
|
54
54
|
export { ProtocolType as ProtocolType } from './System.Net.Sockets/internal/index.js';
|
|
55
55
|
export { SocketType as SocketType } from './System.Net.Sockets/internal/index.js';
|
|
56
|
+
// Extension methods (C# using semantics)
|
|
57
|
+
export type { ExtensionMethods_System_Net_Sockets as ExtensionMethods } from './__internal/extensions/index.js';
|
|
58
|
+
|
|
@@ -96,16 +96,17 @@ export type ValueWebSocketReceiveResult = ValueWebSocketReceiveResult$instance;
|
|
|
96
96
|
export interface ClientWebSocket$instance extends WebSocket$instance {
|
|
97
97
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
98
98
|
readonly closeStatusDescription: string | undefined;
|
|
99
|
-
httpResponseHeaders: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | undefined;
|
|
99
|
+
get httpResponseHeaders(): IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | undefined;
|
|
100
|
+
set httpResponseHeaders(value: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>>);
|
|
100
101
|
readonly httpStatusCode: HttpStatusCode;
|
|
101
102
|
readonly options: ClientWebSocketOptions;
|
|
102
103
|
readonly state: WebSocketState;
|
|
103
104
|
readonly subProtocol: string | undefined;
|
|
104
105
|
abort(): void;
|
|
105
|
-
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string
|
|
106
|
-
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string
|
|
106
|
+
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
107
|
+
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
107
108
|
connectAsync(uri: Uri, cancellationToken: CancellationToken): Task;
|
|
108
|
-
connectAsync(uri: Uri, invoker: HttpMessageInvoker
|
|
109
|
+
connectAsync(uri: Uri, invoker: HttpMessageInvoker, cancellationToken: CancellationToken): Task;
|
|
109
110
|
dispose(): void;
|
|
110
111
|
receiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
|
|
111
112
|
receiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
|
|
@@ -135,18 +136,21 @@ export interface ClientWebSocketOptions$instance {
|
|
|
135
136
|
collectHttpResponseDetails: boolean;
|
|
136
137
|
cookies: CookieContainer;
|
|
137
138
|
credentials: ICredentials;
|
|
138
|
-
dangerousDeflateOptions: WebSocketDeflateOptions | undefined;
|
|
139
|
+
get dangerousDeflateOptions(): WebSocketDeflateOptions | undefined;
|
|
140
|
+
set dangerousDeflateOptions(value: WebSocketDeflateOptions);
|
|
139
141
|
httpVersion: Version;
|
|
140
142
|
httpVersionPolicy: HttpVersionPolicy;
|
|
141
143
|
keepAliveInterval: TimeSpan;
|
|
142
144
|
keepAliveTimeout: TimeSpan;
|
|
143
|
-
proxy: IWebProxy | undefined;
|
|
144
|
-
|
|
145
|
+
get proxy(): IWebProxy | undefined;
|
|
146
|
+
set proxy(value: IWebProxy);
|
|
147
|
+
get remoteCertificateValidationCallback(): RemoteCertificateValidationCallback | undefined;
|
|
148
|
+
set remoteCertificateValidationCallback(value: RemoteCertificateValidationCallback);
|
|
145
149
|
useDefaultCredentials: boolean;
|
|
146
|
-
addSubProtocol(subProtocol: string
|
|
150
|
+
addSubProtocol(subProtocol: string): void;
|
|
147
151
|
setBuffer(receiveBufferSize: int, sendBufferSize: int): void;
|
|
148
152
|
setBuffer(receiveBufferSize: int, sendBufferSize: int, buffer: ArraySegment_1<System_Internal.Byte>): void;
|
|
149
|
-
setRequestHeader(headerName: string
|
|
153
|
+
setRequestHeader(headerName: string, headerValue: string): void;
|
|
150
154
|
}
|
|
151
155
|
|
|
152
156
|
|
|
@@ -186,8 +190,8 @@ export interface WebSocket$instance {
|
|
|
186
190
|
readonly state: WebSocketState;
|
|
187
191
|
readonly subProtocol: string | undefined;
|
|
188
192
|
abort(): void;
|
|
189
|
-
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string
|
|
190
|
-
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string
|
|
193
|
+
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
194
|
+
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
191
195
|
dispose(): void;
|
|
192
196
|
receiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
|
|
193
197
|
receiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
|
|
@@ -200,8 +204,8 @@ export interface WebSocket$instance {
|
|
|
200
204
|
export const WebSocket: {
|
|
201
205
|
readonly defaultKeepAliveInterval: TimeSpan;
|
|
202
206
|
createClientBuffer(receiveBufferSize: int, sendBufferSize: int): ArraySegment_1<System_Internal.Byte>;
|
|
203
|
-
createClientWebSocket(innerStream: Stream, subProtocol: string
|
|
204
|
-
createFromStream(stream: Stream, isServer: boolean, subProtocol: string
|
|
207
|
+
createClientWebSocket(innerStream: Stream, subProtocol: string, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
|
|
208
|
+
createFromStream(stream: Stream, isServer: boolean, subProtocol: string, keepAliveInterval: TimeSpan): WebSocket;
|
|
205
209
|
createFromStream(stream: Stream, options: WebSocketCreationOptions): WebSocket;
|
|
206
210
|
createServerBuffer(receiveBufferSize: int): ArraySegment_1<System_Internal.Byte>;
|
|
207
211
|
isApplicationTargeting45(): boolean;
|
|
@@ -241,11 +245,13 @@ export const WebSocketContext: {
|
|
|
241
245
|
export type WebSocketContext = WebSocketContext$instance;
|
|
242
246
|
|
|
243
247
|
export interface WebSocketCreationOptions$instance {
|
|
244
|
-
dangerousDeflateOptions: WebSocketDeflateOptions | undefined;
|
|
248
|
+
get dangerousDeflateOptions(): WebSocketDeflateOptions | undefined;
|
|
249
|
+
set dangerousDeflateOptions(value: WebSocketDeflateOptions);
|
|
245
250
|
isServer: boolean;
|
|
246
251
|
keepAliveInterval: TimeSpan;
|
|
247
252
|
keepAliveTimeout: TimeSpan;
|
|
248
|
-
subProtocol: string | undefined;
|
|
253
|
+
get subProtocol(): string | undefined;
|
|
254
|
+
set subProtocol(value: string);
|
|
249
255
|
}
|
|
250
256
|
|
|
251
257
|
|
|
@@ -274,25 +280,25 @@ export type WebSocketDeflateOptions = WebSocketDeflateOptions$instance;
|
|
|
274
280
|
export interface WebSocketException$instance extends Win32Exception {
|
|
275
281
|
readonly errorCode: int;
|
|
276
282
|
readonly webSocketErrorCode: WebSocketError;
|
|
277
|
-
getObjectData(info: SerializationInfo
|
|
283
|
+
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
278
284
|
}
|
|
279
285
|
|
|
280
286
|
|
|
281
287
|
export const WebSocketException: {
|
|
282
288
|
new(): WebSocketException;
|
|
283
289
|
new(error: WebSocketError): WebSocketException;
|
|
284
|
-
new(error: WebSocketError, message: string
|
|
285
|
-
new(error: WebSocketError, innerException: Exception
|
|
286
|
-
new(error: WebSocketError, message: string
|
|
290
|
+
new(error: WebSocketError, message: string): WebSocketException;
|
|
291
|
+
new(error: WebSocketError, innerException: Exception): WebSocketException;
|
|
292
|
+
new(error: WebSocketError, message: string, innerException: Exception): WebSocketException;
|
|
287
293
|
new(nativeError: int): WebSocketException;
|
|
288
|
-
new(nativeError: int, message: string
|
|
289
|
-
new(nativeError: int, innerException: Exception
|
|
294
|
+
new(nativeError: int, message: string): WebSocketException;
|
|
295
|
+
new(nativeError: int, innerException: Exception): WebSocketException;
|
|
290
296
|
new(error: WebSocketError, nativeError: int): WebSocketException;
|
|
291
|
-
new(error: WebSocketError, nativeError: int, message: string
|
|
292
|
-
new(error: WebSocketError, nativeError: int, innerException: Exception
|
|
293
|
-
new(error: WebSocketError, nativeError: int, message: string
|
|
294
|
-
new(message: string
|
|
295
|
-
new(message: string
|
|
297
|
+
new(error: WebSocketError, nativeError: int, message: string): WebSocketException;
|
|
298
|
+
new(error: WebSocketError, nativeError: int, innerException: Exception): WebSocketException;
|
|
299
|
+
new(error: WebSocketError, nativeError: int, message: string, innerException: Exception): WebSocketException;
|
|
300
|
+
new(message: string): WebSocketException;
|
|
301
|
+
new(message: string, innerException: Exception): WebSocketException;
|
|
296
302
|
};
|
|
297
303
|
|
|
298
304
|
|
|
@@ -314,7 +320,7 @@ export interface WebSocketReceiveResult$instance {
|
|
|
314
320
|
|
|
315
321
|
export const WebSocketReceiveResult: {
|
|
316
322
|
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): WebSocketReceiveResult;
|
|
317
|
-
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string
|
|
323
|
+
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string): WebSocketReceiveResult;
|
|
318
324
|
};
|
|
319
325
|
|
|
320
326
|
|
|
@@ -327,8 +333,8 @@ export interface WebSocketStream$instance extends Stream {
|
|
|
327
333
|
readonly length: long;
|
|
328
334
|
position: long;
|
|
329
335
|
readonly webSocket: WebSocket;
|
|
330
|
-
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback
|
|
331
|
-
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback
|
|
336
|
+
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
337
|
+
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
332
338
|
dispose(): void;
|
|
333
339
|
disposeAsync(): ValueTask;
|
|
334
340
|
endRead(asyncResult: IAsyncResult): int;
|