blob: 6465fb9f7a86cba78beaca654b3082486fcc9243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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>();
}
}
}
|