private async Task ProcessMessage(ReadOnlySequence <byte> message)
        {
            if (Options.Log != null && Options.Log.Level >= LogLevel.Debug)
            {
                Options.Log.WriteLine(KerberosLogSource.ServiceListener, Environment.NewLine + message.ToArray().HexDump());
            }

            var response = await kdc.ProcessMessage(message);

            await FillResponse(ResponsePipe.Writer, response);
        }
Beispiel #2
0
        protected override async Task <ReadOnlyMemory <byte> > ProcessRequest(ReadOnlyMemory <byte> request, CancellationToken cancellation)
        {
            logger.LogTrace("Message incoming. Request length = {RequestLength}", request.Length);
            logger.TraceBinary(request);

            var response = await kdc.ProcessMessage(request);

            logger.LogTrace("Message processed. Response length = {ResponseLength}", response.Length);

            return(response);
        }
        private async Task ProcessMessage(ReadOnlySequence <byte> message, CancellationToken cancellation)
        {
            logger.LogTrace("Message incoming. Request length = {RequestLength}", message.Length);
            logger.TraceBinary(message);

            var response = await kdc.ProcessMessage(message);

            logger.LogTrace("Message processed. Response length = {ResponseLength}", response.Length);

            await FillResponse(ResponsePipe.Writer, response, cancellation);
        }