mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-05-22 14:46:53 +02:00
identity: change IPersistedGrantDbContext to a singleton
This commit is contained in:
@@ -40,6 +40,7 @@ using MongoDB.Bson.Serialization;
|
||||
using Quartz;
|
||||
using Streetwriters.Common;
|
||||
using Streetwriters.Common.Extensions;
|
||||
using Streetwriters.Common.Interfaces;
|
||||
using Streetwriters.Common.Messages;
|
||||
using Streetwriters.Common.Models;
|
||||
using Streetwriters.Identity.Helpers;
|
||||
@@ -239,7 +240,7 @@ namespace Streetwriters.Identity
|
||||
cm.SetIgnoreExtraElements(true);
|
||||
});
|
||||
|
||||
services.AddScoped<IPersistedGrantDbContext, CustomPersistedGrantDbContext>();
|
||||
services.AddSingleton<IPersistedGrantDbContext, CustomPersistedGrantDbContext>();
|
||||
services.AddTransient<IPersistedGrantStore, PersistedGrantStore>();
|
||||
services.AddTransient<TokenCleanup>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user