im injecting with ninject a concrete type in the controller constructor like so.
public class HomeController : BaseController
{
IUserService userService;
public HomeController(IUserService _userService)
{
this.userService = _userService;
}
}
then in ninject im registering like so.
kernel.Bind<IUserService>().To<UsersService>();
However my UsersService has a constructor which takes the username of the currently logged in user.
how do i register in ninject for my concrete type to be passed in the constructor the httpcontext...User.Identity.Name?