You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using log4net; using System.Net.Http; using System.Web; using System.Web.Http; using JsonRx.Helper; namespace JsonRx { public class WebApiApplication : System.Web.HttpApplication { private static readonly ILog log = LogManager.GetLogger(typeof(WebApiApplication));
protected void Application_Start() { log4net.Config.XmlConfigurator.Configure(); log.Info("JME REST API Application started."); //HttpRequestMessage httpRequestMessage = HttpContext.Current.Items["MS_HttpRequestMessage"] as HttpRequestMessage;
//log4net.GlobalContext.Properties["User_IP"] = httpRequestMessage.GetClientIpAddress();
UnityConfig.RegisterComponents(); GlobalConfiguration.Configure(WebApiConfig.Register);
} } }
|