I cant find ActionContext in Microsoft.AspNetCore.Mvc.Controller
after i changed my Version to AspNetCore 1.0.0-preview1
this is Controller class (after Change):
And from "Microsoft.AspNet.Mvc" before change :
and code from old method before update :
this.Agent = ControllerInfo.Request.Headers["User-Agent"];
this.IP = ControllerInfo.HttpContext.Features.Get<IHttpConnectionFeature>()?.LocalIpAddress?.ToString();
this.RemoteIP = ControllerInfo.HttpContext.Features.Get<IHttpConnectionFeature>()?.RemoteIpAddress.ToString();
this.Refrence = ControllerInfo.ActionContext.RouteData.Values["controller"].ToString() + "/" + ControllerInfo.ActionContext.RouteData.Values["action"].ToString();