Пример #1
0
        public virtual void Setup()
        {
            var ctx = new Context(this, _clientConfig.Domain.Id, _hostName,
                                  NetworkInterfaceManager.GetLocalHostAddress());

            _mContext.Value = ctx;
        }
Пример #2
0
 private static string GetLocalIP()
 {
     try
     {
         return(NetworkInterfaceManager.GetLocalHostAddress());
     }
     catch
     {
         return(string.Empty);
     }
 }