.NET Core vs Mono

What is the difference between .NET Core and Mono? I found a statement on the official site that said: “Code written for it is also portable across application stacks, such as Mono.” My goal is to use C#, LINQ, EF7 and Visual Studio to create a website that can be ran/hosted on Linux. Someone told … Read more

curl: (60) Peer’s Certificate issuer is not recognized.

Finally fixed it. Post the answer here as reference. Export company trusted root certificate with .cer extension. Somthing naming external root certificate Convert the ca file to .pem file using openssl x509 -in xxx.cer -inform der -outform pem -out xxx.pem Then on the centos 7 os: Install the ca-certificates package: yum install ca-certificates Enable the dynamic … Read more

AddTransient, AddScoped and AddSingleton Services Differences

TL;DR Transient objects are always different; a new instance is provided to every controller and every service. Scoped objects are the same within a request, but different across different requests. Singleton objects are the same for every object and every request. For more clarification, this example from .NET documentation shows the difference: To demonstrate the … Read more