Asp.net Core supports for dependency injection by default, you can easily register your services like the following code snippet in Startup class:
public class Startup
...
Monday, 20 November 2017
Although Redis is much more than a cache, But it's possible to use as cache server especially in distributed applications. Redis lets you operate on the values and it's just a key-value pair i...
Monday, 13 November 2017
In asp.net Core, for authorized APIs you can easily pass the JWT token via PostMan like below:
But swagger you don't have authentication by installing it, add the following configurat...
Monday, 13 November 2017
I'm not a java developer and I've never worked with java in real products. Sometimes I read and concepts and compare with C#, Java is cool as well! By using multithread you can perform many op...
Monday, 23 October 2017
In order to validate some input of type object into numeric types, you can use System.Convert in C#. We have them in F# as well! Look at the following function:
open System
let valid...
Thursday, 19 October 2017
There are lots of libraries out there to use paging in enterprise applications. I personally would prefer to write my own as it’s customizable and easy to maintain and modify. Look at the follow...
Sunday, 01 October 2017
HTTP/2 (Hypertext Transfer Protocol version 2) is a protocol for transmitting data over the internet. It is the successor to HTTP/1.1 and was developed by the Internet Engineering Task Force (IETF). T...
Thursday, 14 September 2017
Mapping in entity framework core has a little bit different configuration in comparison to the previous version of entity framework. Let's create a mapping for the following class:
...
Monday, 04 September 2017
If you remember protected internal which was introduced in earlier versions of C#, it can be accessed by any code in the assembly in which it is declared, OR from within a derived class in anothe...
Thursday, 06 July 2017
I'm a Dot Net developer, but sometimes I jump on other programming languages and I think it helps me to comprehend my main field of activity easily. I was just working with the list in Python...
Saturday, 17 June 2017
Today I had to make a connection between an old windows service and SignalR client. After tackling for an hour I decided to reference the Microsoft.AspNet.SignalR.Client library to my web service...
Friday, 26 May 2017
In WCF, by using the MessageHeader attribute, you can add a soap header for messages:
[MessageContract]
public class SoapTest
{
&...
Thursday, 13 April 2017
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