/// <summary> /// Captures the last error from the given HttpServerUtility and sends it to Sentry. /// </summary> /// <param name="server">The HttpServerUtility that contains the last error.</param> /// <returns>A SentryId.</returns> public static SentryId CaptureLastError(this HttpServerUtility server) => server.CaptureLastError(HubAdapter.Instance);