-
Notifications
You must be signed in to change notification settings - Fork 4
/
Startup.cs
27 lines (25 loc) · 874 Bytes
/
Startup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using AspNetMonsters.Blazor.Geolocation;
using DontParkHere.Services;
using Kentico.Kontent.Delivery;
using KenticoKontentModels;
using Microsoft.AspNetCore.Components.Builder;
using Microsoft.Extensions.DependencyInjection;
namespace DontParkHere
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<LocationService>();
services.AddSingleton<MapService>();
services.AddSingleton<ZoneService>();
services.AddSingleton<ICloudDeliveryService, KontentDeliveryService>();
services.AddSingleton<ITypeProvider, CustomTypeProvider>();
services.AddSingleton<ParkingMachineService>();
}
public void Configure(IComponentsApplicationBuilder app)
{
app.AddComponent<App>("app");
}
}
}