Hangfire is a job scheduling framework that provides background processing without needing any windows service. That's the main point and competitive advantage of Hangfire in comparison to other s...
Wednesday, 22 February 2017
As I'm a beginner in Ruby, so don't expect me to write an advanced post about that. I'm writing for beginners like myself! I was just reading about inheritance in ruby. It is so funny! Loo...
Wednesday, 18 January 2017
I want to introduce a simple command handler pattern in order to separate commands and queries of your applications if it’s needed. Sometimes especially in large-scale applications, yo...
Wednesday, 11 January 2017
There are a bunch of open source library for paging In C# but sometimes you need to have your own paging engine to have more control over. I've used the following simple custom paging in a few pro...
Friday, 16 December 2016
The IDocumentSession in RavenDb should be registered per lifetime scope while the DocumentStore should be resisted as a single instance in Autofac. It's my third time that I'm making a big mis...
Sunday, 04 December 2016
In my previews blog post I wrote about Z.bulkOperation. I migrated to sqlbulktools just because it's free with the same ability! (to be frank). Now to see the reason for my migration, fire up visu...
Wednesday, 16 November 2016
Today I was tackling with a problem. It was about inserting and updating 200000 records of data. I just wanted to find a solution rather than writing Store Procedure. I just searched on the web and fo...
Tuesday, 25 October 2016
Multithreading: Based on Microsoft definition, multithreading is the ability of a central processing unit to execute multiple processes or threads concurrently. In multithre...
Saturday, 18 June 2016
Maybe you know about the deferred execution unconsciously. This sexy phrase refers to the point of LINQ queries when it executed. Although executing the LINQ query should be considered and after doing...
Thursday, 12 May 2016
MongoDB offers the GridFS driver for handling files and you can easily upload files into MongoDB. There are lots of benefit of Storing files and metadata in one place in DB. The first thing which come...
Wednesday, 04 May 2016
Based on Microsoft definition "Func is a generic delegate that encapsulates a method that can accept parameters and return some value." There is about 17 override for Func in ...
Monday, 07 March 2016
FluentFTP is a lightweight opensource library for FTP operations and I have used it several times in the applications I have worked on. You can refer to the documentation of the project on GitHub for ...
Saturday, 27 February 2016
While I was working with asp.net core, I encountered with getting the configuration setting from the JSON file and After searching on the web I found out that there would be different ways to do that....
Tuesday, 09 February 2016
using System;
using System.Net;
using System.Net.Mail;
public static class EmailHelper
{
public static async void SendMail(MailParams mail)
{
&nb...
Friday, 22 January 2016
In asp.net MVC there is a custom error in web.config like below:
<customErrors mode="On">
<error statusCode="404" redirect="~/404.html"/>
</cust...
Wednesday, 13 January 2016
If you search in the web for calling web API from C# Code, not from URL, you will find lots of sample on getting and hard enough on the POST! I don't know why but I want to share with you a simple...
Tuesday, 05 January 2016
Recently I had a task on a project to get the overall CPU usage in a Dot Net web application. After searching and testing some codes, the following code gave me the exact result:
...
Monday, 28 December 2015
In simple words, generators are a way of creating iterators. A generator is a function that returns an object that can iterate over in a fast, easy, and clean way. You can use it with a for a statemen...
Monday, 07 December 2015