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 | 4c6f4c214edc5b574951d4cc8f3654bc30efa8da (patch) | |
tree | f0a84c263a58772b02f5d2859444f13cc5df5bdc /Timeline/Startup.cs | |
parent | 994ebd75db1a3d4317402b0552f4a9cc41fd7349 (diff) | |
download | timeline-4c6f4c214edc5b574951d4cc8f3654bc30efa8da.tar.gz timeline-4c6f4c214edc5b574951d4cc8f3654bc30efa8da.tar.bz2 timeline-4c6f4c214edc5b574951d4cc8f3654bc30efa8da.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>();
|