diff --git a/LambertzPortal/LambertzPortal.sln b/LambertzPortal/LambertzPortal.sln new file mode 100644 index 0000000..3a58c0e --- /dev/null +++ b/LambertzPortal/LambertzPortal.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36915.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LambertzPortal", "LambertzPortal\LambertzPortal.csproj", "{9D60011D-2360-4DDC-AF43-7DF73D9FD56B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9D60011D-2360-4DDC-AF43-7DF73D9FD56B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9D60011D-2360-4DDC-AF43-7DF73D9FD56B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9D60011D-2360-4DDC-AF43-7DF73D9FD56B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9D60011D-2360-4DDC-AF43-7DF73D9FD56B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EDE6A789-B03B-4ECC-8537-71244B497B07} + EndGlobalSection +EndGlobal diff --git a/LambertzPortal/LambertzPortal/Components/App.razor b/LambertzPortal/LambertzPortal/Components/App.razor new file mode 100644 index 0000000..9ba32f4 --- /dev/null +++ b/LambertzPortal/LambertzPortal/Components/App.razor @@ -0,0 +1,38 @@ +@using Microsoft.AspNetCore.Mvc.ViewFeatures +@inject IFileVersionProvider FileVersionProvider + + + +
+ + +
+ Request ID: @RequestId
+
+ Swapping to Development environment will display more 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. +
+ +@code{ + [CascadingParameter] + private HttpContext? HttpContext { get; set; } + + private string? RequestId { get; set; } + private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + protected override void OnInitialized() => + RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; +} diff --git a/LambertzPortal/LambertzPortal/Components/Pages/Index/Index.razor b/LambertzPortal/LambertzPortal/Components/Pages/Index/Index.razor new file mode 100644 index 0000000..818dfb2 --- /dev/null +++ b/LambertzPortal/LambertzPortal/Components/Pages/Index/Index.razor @@ -0,0 +1,26 @@ +@page "/" + +Sorry, there's nothing at this address.
+
+ Request ID: @RequestId
+
+ Swapping to Development environment will display more 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. +
+ +@code{ + [CascadingParameter] + private HttpContext? HttpContext { get; set; } + + private string? RequestId { get; set; } + private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + protected override void OnInitialized() => + RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; +} diff --git a/LambertzPortalControlling/LambertzPortalControlling/Components/Pages/Index/Index.razor b/LambertzPortalControlling/LambertzPortalControlling/Components/Pages/Index/Index.razor new file mode 100644 index 0000000..6b9e165 --- /dev/null +++ b/LambertzPortalControlling/LambertzPortalControlling/Components/Pages/Index/Index.razor @@ -0,0 +1,26 @@ +@page "/" + +Sorry, there's nothing at this address.
+LambertzTest: @_cookie
+ +@code { + [CascadingParameter] public HttpContext HttpContext { get; set; } = default!; + private string? _cookie; + + protected override void OnInitialized() + { + HttpContext.Request.Cookies.TryGetValue("LambertzTest", out _cookie); + } +} diff --git a/LambertzPortalPersonalverkauf/LambertzPortalPersonalverkauf/Components/Pages/Counter.razor b/LambertzPortalPersonalverkauf/LambertzPortalPersonalverkauf/Components/Pages/Counter.razor new file mode 100644 index 0000000..ed65882 --- /dev/null +++ b/LambertzPortalPersonalverkauf/LambertzPortalPersonalverkauf/Components/Pages/Counter.razor @@ -0,0 +1,24 @@ +@page "/counter" + +
+ Request ID: @RequestId
+
+ Swapping to Development environment will display more 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. +
+ +@code{ + [CascadingParameter] + private HttpContext? HttpContext { get; set; } + + private string? RequestId { get; set; } + private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + protected override void OnInitialized() => + RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; +} diff --git a/LambertzPortalPersonalverkauf/LambertzPortalPersonalverkauf/Components/Pages/Index/Index.razor b/LambertzPortalPersonalverkauf/LambertzPortalPersonalverkauf/Components/Pages/Index/Index.razor new file mode 100644 index 0000000..c82d581 --- /dev/null +++ b/LambertzPortalPersonalverkauf/LambertzPortalPersonalverkauf/Components/Pages/Index/Index.razor @@ -0,0 +1,25 @@ +@page "/" + +Sorry, there's nothing at this address.
+