diff options
author | crupest <crupest@outlook.com> | 2019-04-22 17:03:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-22 17:03:07 +0800 |
commit | 6a73b71e4af6aa30cf6fca301d954bc01927a8c9 (patch) | |
tree | c5db45281fd18bd113d1652cf104867db276cb1d /Timeline/Startup.cs | |
parent | 58edbb6661c8f7d147f438716b286aa84c6bcb14 (diff) | |
download | timeline-6a73b71e4af6aa30cf6fca301d954bc01927a8c9.tar.gz timeline-6a73b71e4af6aa30cf6fca301d954bc01927a8c9.tar.bz2 timeline-6a73b71e4af6aa30cf6fca301d954bc01927a8c9.zip |
Add Tencent COS.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 3 |
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. |