2020-05-24 02:12:37 +01:00
|
|
|
|
/******************************************************************************
|
2020-05-21 17:23:46 +01:00
|
|
|
|
// MARECHAI: Master repository of computing history artifacts information
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
|
// it under the terms of the GNU General Public License as
|
|
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
//
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
// Copyright © 2003-2020 Natalia Portillo
|
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
2020-05-21 18:52:40 +01:00
|
|
|
|
using Marechai.Shared;
|
2020-05-21 17:23:46 +01:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2020-05-21 18:52:40 +01:00
|
|
|
|
using Microsoft.Extensions.Localization;
|
2020-05-21 17:23:46 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Marechai.Services
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class Register
|
|
|
|
|
|
{
|
2020-05-21 18:52:40 +01:00
|
|
|
|
internal static void RegisterServices(IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
services.AddSingleton<StringLocalizer<NavMenu>>();
|
2020-05-21 17:23:46 +01:00
|
|
|
|
|
2020-05-21 18:52:40 +01:00
|
|
|
|
// TODO: Use reflection
|
2020-05-21 17:23:46 +01:00
|
|
|
|
services.AddScoped<NewsService>();
|
2020-05-21 20:25:47 +01:00
|
|
|
|
services.AddScoped<CompaniesService>();
|
2020-05-22 01:08:12 +01:00
|
|
|
|
services.AddScoped<ComputersService>();
|
2020-05-22 03:15:06 +01:00
|
|
|
|
services.AddScoped<ConsolesService>();
|
2020-05-22 03:35:50 +01:00
|
|
|
|
services.AddScoped<MachinesService>();
|
2020-05-24 02:41:23 +01:00
|
|
|
|
services.AddScoped<AdminService>();
|
2020-05-24 04:11:58 +01:00
|
|
|
|
services.AddScoped<BrowserTestsService>();
|
2020-05-24 05:10:00 +01:00
|
|
|
|
services.AddScoped<DocumentCompaniesService>();
|
2020-05-24 05:24:18 +01:00
|
|
|
|
services.AddScoped<DocumentPeopleService>();
|
2020-05-24 05:42:38 +01:00
|
|
|
|
services.AddScoped<GpusService>();
|
2020-05-24 05:55:12 +01:00
|
|
|
|
services.AddScoped<InstructionSetExtensionsService>();
|
2020-05-24 06:01:10 +01:00
|
|
|
|
services.AddScoped<InstructionSetsService>();
|
2020-05-24 06:10:28 +01:00
|
|
|
|
services.AddScoped<LicensesService>();
|
2020-05-24 15:18:52 +01:00
|
|
|
|
services.AddScoped<MachineFamiliesService>();
|
2020-05-24 17:19:13 +01:00
|
|
|
|
services.AddScoped<PeopleService>();
|
2020-05-24 17:59:47 +01:00
|
|
|
|
services.AddScoped<ProcessorsService>();
|
2020-05-24 18:29:50 +01:00
|
|
|
|
services.AddScoped<ScreensService>();
|
2020-05-24 18:46:48 +01:00
|
|
|
|
services.AddScoped<SoundSynthsService>();
|
2020-05-25 02:44:52 +01:00
|
|
|
|
services.AddScoped<Iso31661NumericService>();
|
2020-05-26 04:17:31 +01:00
|
|
|
|
services.AddScoped<ResolutionsService>();
|
2020-05-27 22:17:28 +01:00
|
|
|
|
services.AddScoped<CompanyLogosService>();
|
2020-05-29 02:45:06 +01:00
|
|
|
|
services.AddScoped<GpusByMachineService>();
|
2020-05-29 02:35:09 +01:00
|
|
|
|
services.AddScoped<SoundSynthsByMachineService>();
|
2020-05-29 03:56:48 +01:00
|
|
|
|
services.AddScoped<ProcessorsByMachineService>();
|
2020-05-29 04:41:24 +01:00
|
|
|
|
services.AddScoped<MemoriesByMachineService>();
|
2020-05-29 05:02:31 +01:00
|
|
|
|
services.AddScoped<StorageByMachineService>();
|
2020-05-29 18:36:05 +01:00
|
|
|
|
services.AddScoped<ScreensByMachineService>();
|
2020-05-30 04:36:31 +01:00
|
|
|
|
services.AddScoped<ResolutionsService>();
|
|
|
|
|
|
services.AddScoped<ResolutionsByScreenService>();
|
|
|
|
|
|
services.AddScoped<ResolutionsByGpuService>();
|
2020-05-31 03:43:56 +01:00
|
|
|
|
services.AddScoped<MachinePhotosService>();
|
2020-08-07 01:13:30 +01:00
|
|
|
|
services.AddScoped<BooksService>();
|
2020-08-07 20:00:38 +01:00
|
|
|
|
services.AddScoped<CurrencyInflationService>();
|
|
|
|
|
|
services.AddScoped<Iso4217Service>();
|
2020-08-07 21:46:48 +01:00
|
|
|
|
services.AddScoped<CurrencyPeggingService>();
|
2020-08-07 22:30:34 +01:00
|
|
|
|
services.AddScoped<DocumentsService>();
|
2020-08-08 03:37:41 +01:00
|
|
|
|
services.AddScoped<DumpsService>();
|
|
|
|
|
|
services.AddScoped<MediaService>();
|
2020-08-08 14:30:04 +01:00
|
|
|
|
services.AddScoped<MagazinesService>();
|
2020-08-08 17:53:00 +01:00
|
|
|
|
services.AddScoped<MagazineIssuesService>();
|
2020-05-21 18:52:40 +01:00
|
|
|
|
}
|
2020-05-21 17:23:46 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|