skip to Main Content

ASP.Net .crt and .key domain certificate

How can I achieve this 'How to create an https server' Node.JS code in Asp.net (.Net 6) const options = { key: fs.readFileSync('key.key'), cert: fs.readFileSync('cert.crt') }; https.createServer(options, function (req, res) { res.writeHead(200); res.end("hello worldn"); }).listen(8000); I'm trying to get my…

VIEW QUESTION

Disable/Enable Azure functions based on regions

I have a .net Azure function project which includes multiple functions such as EventGridTrigger function, BlobTrigger function etc. Few trigger functions in the project needs to be enabled only for specific regions. Is it possible to enable/disable trigger functions based…

VIEW QUESTION

Custom C# attributes – Asp.net

While Creating Custom Attributes a custom class is created which is extended from ValidationAttribute Class. public class CustomAttribute: ValidationAttribute { public void Test() { Console.WriteLine("Hello World"); } public override bool IsValid(object? value) { //Logic here if (condition) { return true;…

VIEW QUESTION
Back To Top
Search