/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.0-alpha-2
src/ASPNETHandler/HttpMeans.cs
43 строки
1 KB
EvilBeaver
Рефакторинг стандартной библиотеки, нейспейсов и глобальных контекстов
29 янв 2020, 12:06
29 янв 2020, 12:06
375e9f2
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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/. ----------------------------------------------------------*/ using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using ScriptEngine.Machine; using ScriptEngine.Machine.Contexts; using System.Web; using ScriptEngine.HostedScript.Library; /// <summary> /// /// </summary> namespace ScriptEngine.HostedScript.Library.HTTPService { [ContextClass("СредстваHTTP", "HTTPMeans")] public class HttpMeansImpl : AutoContext<HttpMeansImpl> { [ContextMethod("ПолучитьФизическийПутьИзВиртуального", "MapPath")] public string MapPath(string virtualPath) { return HttpContext.Current.Server.MapPath(virtualPath); ; } [ScriptConstructor(Name = "Без параметров")] public static HttpMeansImpl Constructor() { return new HttpMeansImpl(); } public HttpMeansImpl() { } } }