aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Startup.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-11 12:57:32 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-11 12:57:32 +0300
commit6e72e69cfbef65c05005c793e0928b4d81224234 (patch)
tree9da0ab333458dc4c37f4e9dd34b10f0bb123c52d /ExamTemplate/Web/Startup.cs
parent1691baf054b6695da35c9d29032d9b3934c1f979 (diff)
downloadit-kariera-exam-template-6e72e69cfbef65c05005c793e0928b4d81224234.tar
it-kariera-exam-template-6e72e69cfbef65c05005c793e0928b4d81224234.tar.gz
it-kariera-exam-template-6e72e69cfbef65c05005c793e0928b4d81224234.zip
Added Cloudinary service and configured it
Diffstat (limited to 'ExamTemplate/Web/Startup.cs')
-rw-r--r--ExamTemplate/Web/Startup.cs5
1 files changed, 5 insertions, 0 deletions
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<CloudinaryService>(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<UserService>();
/*