Raygun 能否用于报告 Azure 辅助角色中未捕获的异常?还是必须手动将捕获的异常发送到 Raygun?我已将以下几行添加到我的 app.config
<configSections>
<section name="RaygunSettings" type="Mindscape.Raygun4Net.RaygunSettings, Mindscape.Raygun4Net" />
</configSections>
<RaygunSettings apikey="my_key" />
我还在 WorkerRole.cs 中添加了以下内容:
public class WorkerRole : RoleEntryPoint, IRaygunApplication
{
private static readonly RaygunClient _raygunClient = new RaygunClient();
public RaygunClient GenerateRaygunClient()
{
return _raygunClient;
}
}