diff options
author | crupest <crupest@outlook.com> | 2020-06-14 14:21:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-14 14:21:44 +0800 |
commit | 5d467d950fd4078146709470084cbfae331b8b10 (patch) | |
tree | 04068a987a6edce803d99e8e110509436604f70d /Timeline/Startup.cs | |
parent | 7ed5306c62262921264bf9c83e00a4c9f3ae33b1 (diff) | |
download | timeline-5d467d950fd4078146709470084cbfae331b8b10.tar.gz timeline-5d467d950fd4078146709470084cbfae331b8b10.tar.bz2 timeline-5d467d950fd4078146709470084cbfae331b8b10.zip |
refactor(back): No longer use standard guid but just use 32-length hex for unique id of timeline.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 76d77e8e..35c47712 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -62,10 +62,7 @@ namespace Timeline services.AddScoped<IPathProvider, PathProvider>();
- services.AddAutoMapper((config) =>
- {
- config.CreateMap<Guid, string>().ConvertUsing(guid => guid.ToString());
- }, GetType().Assembly);
+ services.AddAutoMapper(GetType().Assembly);
services.AddTransient<IClock, Clock>();
|