Mvc assigning user
Anders
Posted on
Jul 01 2015
Hi
I have raygun using the standard mvc nuget packages for MVC working , but how do you override the client creation so you can assign the User information ?
Anders
Posted on
Jul 01 2015
If anyone else is looking the key was to implement :
public class MvcApplication : System.Web.HttpApplication, IRaygunApplication
{
private static readonly RaygunClient _raygunClient = new RaygunClient();
.....
#region Implementation of IRaygunApplication
public RaygunClient GenerateRaygunClient() {
return _raygunClient;
}
#endregion
}
Then you can set the identity and everything is ok