Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Узнать адресс хоста
|
|||
|---|---|---|---|
|
#18+
Подскажите как узнать адрес хоста на котором крутиться сервис типа http://212.12.12.12:8080/MyService Заранее благодарен. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.07.2006, 13:38 |
|
||
|
Узнать адресс хоста
|
|||
|---|---|---|---|
|
#18+
public class Global { /// <summary> /// Returns application virtual path without ending slash. /// </summary> public static string AppPath { get { string appPath = HttpContext.Current.Request.ApplicationPath; return (appPath == "/") ? string.Empty : appPath; } } /// <summary> /// Returns application host name including scheme and port if need, without /// ending slash. /// </summary> public static string AppServer { get { Uri uri = HttpContext.Current.Request.Url; string scheme = uri.Scheme; string host = uri.Host; string port = (uri.IsDefaultPort) ? string.Empty : ":" + uri.Port; return string.Format("{0}://{1}{2}", scheme, host, port); } } /// <summary> /// Returns full web-path for current request, without ending slash. /// </summary> public static string AppFullPath { get { return (AppServer + AppPath); } } public static string AppPhysPath { get { return HttpContext.Current.Request.PhysicalApplicationPath; } } } - - - the truth is out there ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.07.2006, 14:42 |
|
||
|
|

start [/forum/topic.php?fid=18&gotonew=1&tid=1391221]: |
0ms |
get settings: |
8ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
47ms |
get topic data: |
7ms |
get first new msg: |
6ms |
get forum data: |
2ms |
get page messages: |
23ms |
get tp. blocked users: |
1ms |
| others: | 229ms |
| total: | 336ms |

| 0 / 0 |
