Classic dependency injection

With dependency injection, only interfaces are exposed to method callers, which means, details of the method is protected and invisible when being referened, in addition, the interface can be extended as customized and then let same method supports more similar cases. public class Employee { public Employee(ILogger logger) { logger.WriteToLog(“New employee created”); } } public … Continue reading Classic dependency injection

Quick tips of Auto Scaling in Azure Cloud service

Manual auto scale can be done at any time and that works immediately, but it need manual action at time when business increases. Automatically scaling is effective and can work according to the real load in the web role instances, this method is widely used, but take a note: once incoming traffic increase suddenly, the … Continue reading Quick tips of Auto Scaling in Azure Cloud service