mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: add PasteCleanUpService as a hosted service
This commit is contained in:
@@ -26,6 +26,7 @@ namespace SharpbinV3.Server
|
|||||||
opt.UseSqlite(builder.Configuration.GetConnectionString("DefaultConnection"));
|
opt.UseSqlite(builder.Configuration.GetConnectionString("DefaultConnection"));
|
||||||
});
|
});
|
||||||
builder.Services.AddSingleton<ICompressionService, CompressionService>();
|
builder.Services.AddSingleton<ICompressionService, CompressionService>();
|
||||||
|
builder.Services.AddSingleton<IHostedService, PasteCleanUpService>();
|
||||||
builder.Services.AddScoped<IUserService, UserService>();
|
builder.Services.AddScoped<IUserService, UserService>();
|
||||||
builder.Services.AddScoped<IAuthService, AuthService>();
|
builder.Services.AddScoped<IAuthService, AuthService>();
|
||||||
builder.Services.AddScoped<IPasteService, PasteService>();
|
builder.Services.AddScoped<IPasteService, PasteService>();
|
||||||
|
|||||||
Reference in New Issue
Block a user