Exemple #1
0
        public async ValueTask ProcessWireCryptResponseAsync(IXdrReader xdr, GdsConnection connection, CancellationToken cancellationToken = default)
        {
            if (WireCrypt == WireCryptOption.Disabled)
            {
                return;
            }

            // after writing before reading
            connection.StartEncryption();

            var response = await GdsConnection.ProcessOperationAsync(await xdr.ReadOperationAsync(cancellationToken).ConfigureAwait(false), xdr, cancellationToken).ConfigureAwait(false);

            GdsConnection.HandleResponseException(response);

            WireCryptInitialized = true;
        }
Exemple #2
0
        public void ProcessWireCryptResponse(IXdrReader xdr, GdsConnection connection)
        {
            if (WireCrypt == WireCryptOption.Disabled)
            {
                return;
            }

            // after writing before reading
            connection.StartEncryption();

            var response = GdsConnection.ProcessOperation(xdr.ReadOperation(), xdr);

            GdsConnection.HandleResponseException(response);

            WireCryptInitialized = true;
        }