/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v1.8.1
src/OneScript.DebugProtocol/Binder.cs
33 строки
886 B
EvilBeaver
Глобальная чистка неиспользуемых using
24 дек 2021, 11:01
24 дек 2021, 11:01
c343f53
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ #if NETFRAMEWORK using System; using System.ServiceModel; using System.ServiceModel.Channels; namespace OneScript.DebugProtocol { public static class Binder { public static Uri GetDebuggerUri(int port) { var builder = new UriBuilder(); builder.Scheme = "net.tcp"; builder.Port = port; builder.Host = "localhost"; return builder.Uri; } public static Binding GetBinding() { return new NetTcpBinding(SecurityMode.None); } } } #endif