add invite repository to replace ef core
This commit is contained in:
parent
5891f28f7c
commit
64b4c26d93
12 changed files with 112 additions and 301 deletions
|
|
@ -106,8 +106,9 @@ public static class StartupExtensions
|
|||
services
|
||||
.AddSingleton<IClock>(SystemClock.Instance)
|
||||
.AddDatabasePool()
|
||||
.AddScoped<DapperMessageRepository>()
|
||||
.AddScoped<MessageRepository>()
|
||||
.AddScoped<GuildRepository>()
|
||||
.AddScoped<InviteRepository>()
|
||||
.AddSingleton<GuildCache>()
|
||||
.AddSingleton<RoleCache>()
|
||||
.AddSingleton<ChannelCache>()
|
||||
|
|
@ -118,7 +119,6 @@ public static class StartupExtensions
|
|||
.AddSingleton<NewsService>()
|
||||
.AddScoped<IEncryptionService, EncryptionService>()
|
||||
.AddSingleton<MetricsCollectionService>()
|
||||
// .AddScoped<MessageRepository>()
|
||||
.AddSingleton<WebhookExecutorService>()
|
||||
.AddSingleton<PkMessageHandler>()
|
||||
.AddSingleton(InMemoryDataService<Snowflake, ChannelCommandData>.Instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue