protected override void Initialize(RequestContext ctx) { base.Initialize(ctx); var clientInfo = string.IsNullOrEmpty(ctx.HttpContext.Request.UserHostName) ? ctx.HttpContext.Request.UserHostAddress : ctx.HttpContext.Request.UserHostName; if (_service == null) { _service = new HomeService(HttpContext.Trace, HttpContext.User.IsInRole(ROLE_WAVE_MANAGER) ? HttpContext.User.Identity.Name : string.Empty, clientInfo); } }