Tag Archives: .NET

What is the difference between synchronous and asynchronous communication?

And will adding the async keyword to my .NET api make it asynchronous? No not in the sense of asynchronous architecture. let me explain. A Restaurant Analogy Let’s take a real-life example of a restaurant. And at this restaurant customers need to go to the counter to get served. In the first example, the server has NOT been… Read More »

Encrypting an ASP.NET web application connection strings by directory

To encrypt an ASP.NET application’s connection strings?by the path of the application, navigate to the .NET framework folder ?%windows%\Microsoft.NET\Framework\versionNumber Open the command prompt as administrator and point to the .Net directory and run the command ASPNET_REGIIS -pef “connectionStrings” “C:\Inetpub\<Application Folder>” (Point to the directory not the web.config file) If successful the following should be displayed.    

ASP.NET Web API – Returning javascript friendly (camelcase) json in two lines of code

Naming conventions of properties defer slightly in .NET and JavaScript. .NET uses?pascal-case and JavaScript uses camel-case. When developing a .NET API all the public properties should use the naming convention pascal-case. However if the service is consumed as an API with a JavaScript client then the json returned should be camel-case. Now you could go and add the… Read More »