Month: March 2018
First things first, some useful StackOverflow links:https://stackoverflow.com/questions/9201239/send-e-mail-via-smtp-using-c-sharphttps://stackoverflow.com/questions/17462628/the-server-response-was-5-7-0-must-issue-a-starttls-command-first-i16sm1806350To demonstrate how this is done I first create a new Visual Studio project:Some example code for sending an email via a Google email …
useful link is here:https://dotnetcodr.com/2015/09/18/how-to-enable-ssl-for-a-net-project-in-visual-studio/Create a new Web Api project in Visual Studio:Select/click on the Web API project name in the solution explorer, and then click on the Properties tab. Set …
StackOverflow link where I got this technique from is here:https://stackoverflow.com/questions/2454956/create-normal-zip-file-programmatically/First create a new console application:Add references to System.IO.Compression and System.IO.Compression.FileSystem:Select a folder containing a set of files that you would …
A simple console app to demonstrate this.After creating your Visual Studio application, console or otherwise, make sure the System.Web.Extension reference is added:Suppose we have an object we wish to serialize/deserialize, …
This post shows you how to handle encrypted user credentials in a Web Api application and offer further security by enforcing https for all REST api calls.Step 1: Create a …
Some instructions on how to create implement basic authentication in a Web API application.Just follow what is shown in the steps and screenshots as shown:Step 1: Create a new ASP.NET …
Step 1: Create a new ASP.NET Web applicationStep 2: Install Unity through NugetAt the current time of writing the version used in the Package Manager Console was as follows:Step 3: …
See this post for creating simple Web Api applicationhttps://www.technical-recipes.com/2018/getting-started-with-creating-asp-net-web-api-services/Step 1: Create new Web API projectStep 2: Modify the Values controllerComment out requirement and add the requirement in ValuesController.cs …
To create a very simple ASP.NET Web API service as an example, please see this previous post:https://www.technical-recipes.com/2018/getting-started-with-creating-asp-net-web-api-services/This will show you how to create a basic Web API service, with example …
If you do not have an example web service url available here, you can refer to this post to create one for yourself:https://www.technical-recipes.com/2018/getting-started-with-creating-asp-net-web-api-services/In that example the GET command returns an …