コード例 #1
0
        public async Task ConnectionAvailable(ConnectionHandler handler)
        {
            currentConnection = handler;

            Log.Trace("Creating new http context");
            var http = new Http(currentConnection);

            Log.Trace("Start http processing");
            using (new Stopper(x => Log.Trace($"HTTP processing time: {x.ElapsedMilliseconds}ms")))
            {
                await http.Process();
            }
            Log.Trace("End http processing");
        }