| | 1 | | using Microsoft.Extensions.DependencyInjection; |
| | 2 | | using MRA.Services; |
| | 3 | | using MRA.Services.Excel.Interfaces; |
| | 4 | | using MRA.Services.Excel; |
| | 5 | | using MRA.Services.Models.Collections; |
| | 6 | | using MRA.Services.Models.Drawings; |
| | 7 | | using MRA.Services.Models.Inspirations; |
| | 8 | | using MRA.Services.RemoteConfig; |
| | 9 | | using MRA.Services.Storage; |
| | 10 | | using Microsoft.Extensions.Configuration; |
| | 11 | | using MRA.Services.UserInput; |
| | 12 | | using MRA.Services.Backup.Export; |
| | 13 | | using MRA.Services.Backup.Import; |
| | 14 | |
|
| | 15 | | namespace MRA.DependencyInjection.Startup; |
| | 16 | |
|
| | 17 | | public static class ServicesStartup |
| | 18 | | { |
| | 19 | | public static void AddCustomServices(this IServiceCollection services) |
| | 20 | | { |
| 1 | 21 | | services.AddAzureAppConfiguration(); |
| | 22 | |
|
| 1 | 23 | | services.AddSingleton<IExcelService, ExcelService>(); |
| 1 | 24 | | services.AddSingleton<IStorageService, StorageService>(); |
| 1 | 25 | | services.AddSingleton<IRemoteConfigService, RemoteConfigService>(); |
| | 26 | |
|
| 1 | 27 | | services.AddSingleton<IImportService, ImportService>(); |
| 1 | 28 | | services.AddSingleton<IExportService, ExportService>(); |
| 1 | 29 | | services.AddSingleton<IUserInputService, UserInputService>(); |
| | 30 | |
|
| 1 | 31 | | services.AddSingleton<ICollectionService, CollectionService>(); |
| 1 | 32 | | services.AddSingleton<IDrawingService, DrawingService>(); |
| 1 | 33 | | services.AddSingleton<IInspirationService, InspirationService>(); |
| | 34 | |
|
| 1 | 35 | | services.AddSingleton<IAppService, AppService>(); |
| 1 | 36 | | } |
| | 37 | | } |