This is the beta website.
9 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoNet6/WebDemoNet6/Pages/Beta.cshtml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc.RazorPages; 2 | using Microsoft.FeatureManagement.Mvc; 3 | 4 | namespace WebDemoNet6.Pages 5 | { 6 | [FeatureGate("Beta")] 7 | public class BetaModel : PageModel 8 | { 9 | public void OnGet() 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoNet6/WebDemoNet6/Pages/Error.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ErrorModel 3 | @{ 4 | ViewData["Title"] = "Error"; 5 | } 6 | 7 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoNet6/WebDemoNet6/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.AspNetCore.Mvc.RazorPages; 3 | using System.Diagnostics; 4 | 5 | namespace WebDemoNet6.Pages 6 | { 7 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] 8 | [IgnoreAntiforgeryToken] 9 | public class ErrorModel : PageModel 10 | { 11 | public string? RequestId { get; set; } 12 | 13 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 14 | 15 | private readonly ILoggerUse this page to detail your site's privacy policy.
9 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoNet6/WebDemoNet6/Pages/Privacy.cshtml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.AspNetCore.Mvc.RazorPages; 3 | 4 | namespace WebDemoNet6.Pages 5 | { 6 | public class PrivacyModel : PageModel 7 | { 8 | private readonly ILoggerUse this area to provide additional information.
10 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoWithEventHub/WebDemoWithEventHub/Pages/About.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc.RazorPages; 6 | 7 | namespace WebDemoWithEventHub.Pages 8 | { 9 | public class AboutModel : PageModel 10 | { 11 | public string Message { get; set; } 12 | 13 | public void OnGet() 14 | { 15 | Message = "Your application description page."; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoWithEventHub/WebDemoWithEventHub/Pages/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ContactModel 3 | @{ 4 | ViewData["Title"] = "Contact"; 5 | } 6 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to Development environment will display more detailed information about the error that occurred. 20 |
21 |22 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 23 |
24 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoWithEventHub/WebDemoWithEventHub/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc.RazorPages; 7 | 8 | namespace WebDemoWithEventHub.Pages 9 | { 10 | public class ErrorModel : PageModel 11 | { 12 | public string RequestId { get; set; } 13 | 14 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 15 | 16 | public void OnGet() 17 | { 18 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/DotNetCore/WebDemoWithEventHub/WebDemoWithEventHub/Pages/Index.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model IndexModel 3 | @{ 4 | ViewData["Title"] = "Home page"; 5 | 6 | } 7 | 8 | @section InlineStyles { 9 | .center { 10 | font-size: @(Model.Settings.FontSize)px; 11 | } 12 | 13 | body { 14 | background-color: @Model.Settings.BackgroundColor; 15 | } 16 | } 17 | 18 |Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /examples/DotNetFramework/WebDemo/Microsoft.Azure.AppConfiguration.WebDemo/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Contact"; 3 | } 4 |The Beta tab only shows to users when the Beta feature flag is true.
39 | 40 |The Beta tab only shows to users when the Beta feature flag is true.
39 | 40 |This can only be seen if variant 'Alpha' of 'FeatureX' is assigned.
26 |