diff options
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. |