public virtual void Setup() { var ctx = new Context(this, _clientConfig.Domain.Id, _hostName, NetworkInterfaceManager.GetLocalHostAddress()); _mContext.Value = ctx; }
private static string GetLocalIP() { try { return(NetworkInterfaceManager.GetLocalHostAddress()); } catch { return(string.Empty); } }