Browse Source

Add UserPreferences to DocumentRenderErrorEvent

pull/20543/head
liangshiwei 2 years ago
parent
commit
ede0da863e
  1. 4
      modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/DocumentRenderErrorEvent.cs
  2. 3
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

4
modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/DocumentRenderErrorEvent.cs

@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace Volo.Docs.Documents;
public class DocumentRenderErrorEvent
@ -7,4 +9,6 @@ public class DocumentRenderErrorEvent
public string ErrorMessage { get; set; }
public string Url { get; set; }
public Dictionary<string, string> UserPreferences { get; set; }
}

3
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -592,7 +592,8 @@ namespace Volo.Docs.Pages.Documents.Project
{
ErrorMessage = e.Message,
Name = Document.Name,
Url = Request.GetDisplayUrl()
Url = Request.GetDisplayUrl(),
UserPreferences = UserPreferences
});
// Slow down with crawling

Loading…
Cancel
Save