protected async Task <string> OnCustomGroupingKey(Exception exception, RaygunMessage message) { string result = null; if (!_handlingRecursiveGrouping) { var handler = CustomGroupingKey; if (handler != null) { var args = new RaygunCustomGroupingKeyEventArgs(exception, message); try { handler(this, args); } catch (Exception e) { _handlingRecursiveGrouping = true; await SendAsync(e, null, null); _handlingRecursiveGrouping = false; } result = args.CustomGroupingKey; } } return(result); }
protected async Task<string> OnCustomGroupingKey(Exception exception, RaygunMessage message) { string result = null; if (!_handlingRecursiveGrouping) { var handler = CustomGroupingKey; if (handler != null) { var args = new RaygunCustomGroupingKeyEventArgs(exception, message); try { handler(this, args); } catch (Exception e) { _handlingRecursiveGrouping = true; await SendAsync(e, null, null, null); _handlingRecursiveGrouping = false; } result = args.CustomGroupingKey; } } return result; }