blob: e9221fef90a3e5c55bf25f2bf2f8e39785ecee0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Timeline.Services
{
public static class BasicServicesServiceCollectionExtensions
{
public static IServiceCollection AddBasicServices(this IServiceCollection services)
{
services.TryAddSingleton<IPathProvider, PathProvider>();
services.TryAddTransient<IClock, Clock>();
return services;
}
}
}
|