Files
marechai/Marechai/Services/Register.cs

73 lines
3.3 KiB
C#
Raw Normal View History

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>();
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>();
services.AddScoped<DocumentCompaniesService>();
services.AddScoped<DocumentPeopleService>();
2020-05-24 05:42:38 +01:00
services.AddScoped<GpusService>();
services.AddScoped<InstructionSetExtensionsService>();
services.AddScoped<InstructionSetsService>();
2020-05-24 06:10:28 +01:00
services.AddScoped<LicensesService>();
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>();
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>();
services.AddScoped<CompanyLogosService>();
2020-05-29 02:45:06 +01:00
services.AddScoped<GpusByMachineService>();
services.AddScoped<SoundSynthsByMachineService>();
services.AddScoped<ProcessorsByMachineService>();
services.AddScoped<MemoriesByMachineService>();
services.AddScoped<StorageByMachineService>();
services.AddScoped<ScreensByMachineService>();
2020-05-30 04:36:31 +01:00
services.AddScoped<ResolutionsService>();
services.AddScoped<ResolutionsByScreenService>();
services.AddScoped<ResolutionsByGpuService>();
services.AddScoped<MachinePhotosService>();
2020-08-07 01:13:30 +01:00
services.AddScoped<BooksService>();
2020-05-21 18:52:40 +01:00
}
2020-05-21 17:23:46 +01:00
}
}