-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
18 lines (15 loc) · 815 Bytes
/
Copy pathProgram.cs
File metadata and controls
18 lines (15 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using DocumentUploadWorker;
using DocumentUploadWorker.Data;
using DocumentUploadWorker.Services;
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddSingleton<SqlConnectionFactory>();
builder.Services.AddScoped<IUploadQueueRepository, UploadQueueRepository>();
builder.Services.AddScoped<IOneDriveUploader, OneDriveUploader>();
builder.Services.AddScoped<QueueProcessor>();
builder.Services.AddScoped<IUploadedDocumentsRepository, UploadedDocumentsRepository>();
builder.Services.AddHostedService<Worker>();
builder.Services.AddScoped<AppDocumentUpdater>();
builder.Services.AddSingleton<IImageNormalizer, ImageNormalizer>();
builder.Services.AddSingleton<IFileSystem, FileSystemWrapper>();
builder.Services.AddScoped<ICommonFolderRepository, CommonFolderRepository>();
builder.Build().Run();