diff options
author | crupest <crupest@outlook.com> | 2021-04-27 18:52:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 18:52:57 +0800 |
commit | 7a54c3fea708f25303c27630ae2bc8101b9390c3 (patch) | |
tree | 8a9f0cb6d6b6bd33d5ce4f3e987e339e433f396a /BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs | |
parent | 2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8 (diff) | |
download | timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.tar.gz timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.tar.bz2 timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs')
-rw-r--r-- | BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs b/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs new file mode 100644 index 00000000..6465fb9f --- /dev/null +++ b/BackEnd/Timeline/Services/BasicServicesServiceCollectionExtensions.cs @@ -0,0 +1,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>();
+ }
+ }
+}
|