Skip to content

Commit b76dc49

Browse files
Copilotwadepickett
andcommitted
Replace #region syntax with // <snippet_name> format in sample files according to copilot-instructions.md
Co-authored-by: wadepickett <[email protected]>
1 parent 2327e9b commit b76dc49

File tree

2 files changed

+4
-4
lines changed
  • aspnetcore/security/authentication/cookie/samples

2 files changed

+4
-4
lines changed

aspnetcore/security/authentication/cookie/samples/3.x/CookieSample/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void ConfigureServices(IServiceCollection services)
2424
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
2525
}
2626

27-
#region snippet_policy
27+
// <snippet_policy>
2828
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
2929
{
3030
if (env.IsDevelopment())
@@ -59,6 +59,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
5959
endpoints.MapRazorPages();
6060
});
6161
}
62-
#endregion
62+
// </snippet_policy>
6363
}
6464
}

aspnetcore/security/authentication/cookie/samples/6.x/CookieSample/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
app.Run();
7373
#endregion
7474
#elif POLICY
75-
#region snippet_policy
75+
// <snippet_policy>
7676
using Microsoft.AspNetCore.Authentication.Cookies;
7777

7878
var builder = WebApplication.CreateBuilder(args);
@@ -117,7 +117,7 @@
117117
app.MapDefaultControllerRoute();
118118

119119
app.Run();
120-
#endregion
120+
// </snippet_policy>
121121
#elif CC
122122
#region snippet_cc
123123
using Microsoft.AspNetCore.Authentication.Cookies;

0 commit comments

Comments
 (0)