aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Startup.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-22 17:03:07 +0800
committercrupest <crupest@outlook.com>2019-04-22 17:03:07 +0800
commit45c09ace4acee4df9c860395fb7261adb09bc914 (patch)
treec5db45281fd18bd113d1652cf104867db276cb1d /Timeline/Startup.cs
parent80d686a8b875cce854e4291cbe4a53e7a03e3eff (diff)
downloadtimeline-45c09ace4acee4df9c860395fb7261adb09bc914.tar.gz
timeline-45c09ace4acee4df9c860395fb7261adb09bc914.tar.bz2
timeline-45c09ace4acee4df9c860395fb7261adb09bc914.zip
Add Tencent COS.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r--Timeline/Startup.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs
index 285dfcfa..6491554a 100644
--- a/Timeline/Startup.cs
+++ b/Timeline/Startup.cs
@@ -80,6 +80,9 @@ namespace Timeline
warnings.Throw(RelationalEventId.QueryClientEvaluationWarning);
});
});
+
+ services.Configure<TencentCosConfig>(Configuration.GetSection(nameof(TencentCosConfig)));
+ services.AddSingleton<ITencentCloudCosService, TencentCloudCosService>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.