Autofac, API and LifetimeScopes

Once again I came across problem of registering services in Autofac container in API oriented project. Basically it's registering business-logic-services to be resolved as instance per (API) request. It works... until you'd like to resolve your service in Integration tests or Hangfire/Quartz job. The whole problem is discussed on…

Cake and WebDeploy

Cake is great open source alternative for building your .NET solutions. What is more, it allows to attach your own written downloaded from nuget/GitHub plugins (a.k.a. Addins) which will do the job for you. For example, as a .NET web developer I often make deploys to the…

Facebook chat in cmd

Install NPM package manager choco install nodejs npm -y Create Console Application. Install Edge.js with NuGet. Install-Package Edge.js Open cmd in root of your Console app and install facebook-chat-api module npm install facebook-chat-api Then insert snippet below for messaging you on FB by running application. using System; using…