skip to Main Content

Visual Studio Code – How to get multiple values of same variable in the function class from local.settings.json file?

Language Stack: .NET 6 LTS IDE: Visual Studio 2022 Community local.settings.json: { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "dotnet", "toAddress": [ { "mail1": "[email protected]", "mail2": "[email protected]", "mail3": "[email protected]" } ] } } Function Class: using System; using System.IO; using…

VIEW QUESTION

Asp.net – Flexible way to handle exception in Web API

I'm currently making a web API with .NET 6. The code bellow is my Exception handler class: public class ExceptionsMiddleware { private readonly RequestDelegate requestDelegate; private readonly ILogger<ExceptionsMiddleware> logger; public ExceptionsMiddleware(RequestDelegate requestDelegate, ILogger<ExceptionsMiddleware> logger) { this.requestDelegate = requestDelegate; this.logger =…

VIEW QUESTION
Back To Top
Search