diff --git a/Redaction/Add Redaction Annotation Programmatically/NuGet.config b/Redaction/Add Redaction Annotation Programmatically/NuGet.config
new file mode 100644
index 0000000..7c8896e
--- /dev/null
+++ b/Redaction/Add Redaction Annotation Programmatically/NuGet.config
@@ -0,0 +1,13 @@
+
+
+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/Redaction/Add Redaction Annotation Programmatically/Pages/Error.cshtml.cs b/Redaction/Add Redaction Annotation Programmatically/Pages/Error.cshtml.cs new file mode 100644 index 0000000..0a23fb0 --- /dev/null +++ b/Redaction/Add Redaction Annotation Programmatically/Pages/Error.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Diagnostics; + +namespace PDFViewerSample.Pages +{ + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + [IgnoreAntiforgeryToken] + public class ErrorModel : PageModel + { + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + private readonly ILoggerUse this page to detail your site's privacy policy.
diff --git a/Redaction/Add Redaction Annotation Programmatically/Pages/Privacy.cshtml.cs b/Redaction/Add Redaction Annotation Programmatically/Pages/Privacy.cshtml.cs new file mode 100644 index 0000000..f9a85a1 --- /dev/null +++ b/Redaction/Add Redaction Annotation Programmatically/Pages/Privacy.cshtml.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace PDFViewerSample.Pages +{ + public class PrivacyModel : PageModel + { + private readonly ILogger
+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/Redaction/Search Text and Redact/Pages/Error.cshtml.cs b/Redaction/Search Text and Redact/Pages/Error.cshtml.cs new file mode 100644 index 0000000..0a23fb0 --- /dev/null +++ b/Redaction/Search Text and Redact/Pages/Error.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Diagnostics; + +namespace PDFViewerSample.Pages +{ + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + [IgnoreAntiforgeryToken] + public class ErrorModel : PageModel + { + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + private readonly ILoggerUse this page to detail your site's privacy policy.
diff --git a/Redaction/Search Text and Redact/Pages/Privacy.cshtml.cs b/Redaction/Search Text and Redact/Pages/Privacy.cshtml.cs new file mode 100644 index 0000000..f9a85a1 --- /dev/null +++ b/Redaction/Search Text and Redact/Pages/Privacy.cshtml.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace PDFViewerSample.Pages +{ + public class PrivacyModel : PageModel + { + private readonly ILogger
+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/Redaction/Show and Hide Redaction Toolbar/Pages/Error.cshtml.cs b/Redaction/Show and Hide Redaction Toolbar/Pages/Error.cshtml.cs new file mode 100644 index 0000000..0a23fb0 --- /dev/null +++ b/Redaction/Show and Hide Redaction Toolbar/Pages/Error.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Diagnostics; + +namespace PDFViewerSample.Pages +{ + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + [IgnoreAntiforgeryToken] + public class ErrorModel : PageModel + { + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + private readonly ILoggerUse this page to detail your site's privacy policy.
diff --git a/Redaction/Show and Hide Redaction Toolbar/Pages/Privacy.cshtml.cs b/Redaction/Show and Hide Redaction Toolbar/Pages/Privacy.cshtml.cs new file mode 100644 index 0000000..f9a85a1 --- /dev/null +++ b/Redaction/Show and Hide Redaction Toolbar/Pages/Privacy.cshtml.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace PDFViewerSample.Pages +{ + public class PrivacyModel : PageModel + { + private readonly ILogger