/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v1.7.0
src/OneScript.DebugProtocol/Binder.cs
36 строк
958 B
Andrei Ovsiankin
Добавил директив препроцессора для WCF
12 апр 2020, 00:00
12 апр 2020, 00:00
1082ce3
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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.Collections.Generic; using System.Linq; using System.ServiceModel; using System.ServiceModel.Channels; using System.Text; 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