Skip to content

Commit 2b069d1

Browse files
committed
Switch to XML-based .slnx solution format
Replaced the traditional text-based `TwoFactorAuthenticationSample.sln` with a new XML-based `TwoFactorAuthenticationSample.slnx` file. The new format enhances readability and organization by structuring the solution in a hierarchical manner. It includes solution-level files and project references, maintaining the same content as the original solution.
1 parent 767c10c commit 2b069d1

3 files changed

Lines changed: 11 additions & 40 deletions

File tree

TwoFactorAuthenticationSample.sln

Lines changed: 0 additions & 39 deletions
This file was deleted.

TwoFactorAuthenticationSample.slnx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path=".editorconfig" />
4+
<File Path=".github/copilot-instructions.md" />
5+
<File Path="Directory.Build.props" />
6+
<File Path="README.md" />
7+
</Folder>
8+
<Project Path="TwoFactorAuthenticationSample.DataAccessLayer/TwoFactorAuthenticationSample.DataAccessLayer.csproj" />
9+
<Project Path="TwoFactorAuthenticationSample/TwoFactorAuthenticationSample.csproj" />
10+
</Solution>

TwoFactorAuthenticationSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
builder.Services.AddDataProtection().SetApplicationName(builder.Environment.ApplicationName)
3737
.PersistKeysToDbContext<ApplicationDbContext>();
3838

39-
builder.Services.AddScoped(services =>
39+
builder.Services.AddSingleton(services =>
4040
{
4141
var dataProtectionProvider = services.GetRequiredService<IDataProtectionProvider>();
4242
var dataProtector = dataProtectionProvider.CreateProtector(nameof(ITimeLimitedDataProtector)).ToTimeLimitedDataProtector();

0 commit comments

Comments
 (0)