From 6e72e69cfbef65c05005c793e0928b4d81224234 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 11 May 2021 12:57:32 +0300 Subject: Added Cloudinary service and configured it --- ExamTemplate/Web/Startup.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ExamTemplate/Web/Startup.cs') diff --git a/ExamTemplate/Web/Startup.cs b/ExamTemplate/Web/Startup.cs index ba8737f..bfaab91 100644 --- a/ExamTemplate/Web/Startup.cs +++ b/ExamTemplate/Web/Startup.cs @@ -33,6 +33,11 @@ namespace ExamTemplate.Web * Dependency Injection configuration */ + services.AddTransient(options => + new CloudinaryService( + cloudName: this.Configuration.GetSection("Cloud").GetSection("cloudName").Value, + apiKey: this.Configuration.GetSection("Cloud").GetSection("apiKey").Value, + apiSecret: this.Configuration.GetSection("Cloud").GetSection("apiSecret").Value)); services.AddTransient(); /* -- cgit v1.2.3