示例#1
0
        private void OnWebClientAccepted(Task <Socket> task)
        {
            var succeeded = MiscHelpers.Try(out var socket, () => task.Result);

            if (!disposedFlag.IsSet)
            {
                if (succeeded)
                {
                    WebContext.CreateAsync(socket).ContinueWith(OnWebContextCreated);
                }

                StartAcceptWebClient();
            }
        }