Coderr.Client.AspNet
1.0.0
Esta biblioteca detectará todas las excepciones no controladas en aplicaciones basadas en ASP.NET.
Si desea obtener un manejo de excepciones automatizadas para una de las bibliotecas basadas en ASP.NET, use los siguientes paquetes:
Primero, siga esta guía.
Luego active esta biblioteca:
public class Global : System . Web . HttpApplication
{
protected void Application_Start ( object sender , EventArgs e )
{
//replace with your server URL and your appkey/SharedSecret.
var uri = new Uri ( "https://report.coderr.io/" ) ;
Err . Configuration . Credentials ( uri ,
"yourAppKey" ,
"yourSharedSecret" ) ;
Err . Configuration . CatchAspNetExceptions ( ) ;
}
}Esta biblioteca informa automáticamente todas las excepciones no controladas. Pero a veces necesitas lidiar con excepciones tú mismo.
public void UpdatePost ( int uid , ForumPost post )
{
try
{
_service . Update ( uid , post ) ;
}
catch ( Exception ex )
{
Err . Report ( ex , new { UserId = uid , ForumPost = post } ) ;
}
}Esta biblioteca incluye las siguientes colecciones de contexto para todas las excepciones reportadas: