/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/MouseWithoutBorders/App/Exceptions/ExpectedSocketException.cs
24 строки
655 B
Andrey Nekrasov
[New Utility]Mouse Without Borders
18 май 2023, 23:48
18 май 2023, 23:48
29eebe1
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Net.Sockets; namespace MouseWithoutBorders.Exceptions { internal class ExpectedSocketException : KnownException { internal bool ShouldReconnect { get; set; } internal ExpectedSocketException(string message) : base(message) { } internal ExpectedSocketException(SocketException se) : base(se.Message) { ShouldReconnect = se.ErrorCode == 10054; } } }