Profile Picture

Sirwan Afifi

Stories from a web developer.

© 2019. Sirwan Afifi All rights reserved.

Using IHostingEnvironment in a test project

Assume that you have a service which accepts as its dependency: Now we wan to be able to load that JSON file inside a test project in order…

Migrating To Gatsby

Jekyll got me into blogging mostly because of its markdown support. When I first saw it, it was clear to me I had to have it. I'd say it was…

Morse code

Morse Code is a set of dots and dashes (short mark, dot or 'dit' (·) and longer mark, dash or 'dah' (-)). Basically, it's a character…

Calling Stored Procedures using Dapper

Today I wanted to call a Stored Procedure using Entity Framework Core. It is possible using method, which is one of the powerful features…

Highlighting Current Link in Razor Pages

Let's say you have several pages in your Razor Pages application. Now you want to make the menu items active depending on the page you are…

Passed Exam 70-483 - Programming in C#

I have been developing with C# for a while, and I decided to pass Exam 70-483 in order to validate my skill. In order to pass the exam, you…

Hosting React app on IIS

Today I wanted to host a React application; the first and easiest option was hosting the app using a package called serve which is basically…

Hosting a WCF Service as a Windows Service Using Topshelf

You might be wondering why I am blogging about WCF. Is it still relevant? This is part of a legacy WCF project, and I am responsible for…

What's Elasticsearch

Wikipedia: Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search…

GraphQL

Recently I have been working on a node stack project as a full stack JavaScript developer, it's a great experience because I'm working with…