Rock Your Development With A Real World Example

I've just released by brand new conference session "Rock Your Development With A Real World Example" on video-on-demand. This video is for you if you want to see how I implemented proper architecture in Microsoft Azure. To see this session, live and in person click here to check out my conference schedule. Rock Your Development [...]

Rock Your Technical Interview (2017)

I've just released a brand new version of my Rock Your Technical Interview conference session on video-on-demand. It's packed full of new tips for 2017! To see this session, live and in person click here to check out my conference schedule. Röck Yoür Technical Interview from David McCarter on Vimeo. Save 50% if you purchase [...]

Retrieve The Status of a Windows Service

Here is an easy way to get the status of a Windows service. ''' <summary> ''' Gets the status of a Windows service. ''' </summary> ''' <param name="serviceName">Name of the service.</param> ''' <returns>ServiceControllerStatus.</returns> ''' <exception cref="InvalidOperationException">Service not  found.</exception> ''' <exception cref="System.InvalidOperationException">Service  not found.</exception> Public Function ServiceStatus(serviceName As String)  As ServiceControllerStatus     Dim service As ServiceController = LoadService(serviceName)     If service IsNot Nothing Then         Return service.Status     Else         Throw New InvalidOperationException("Service not  found.")     End If End Function ''' <summary> ''' Loads the service. ''' </summary> ''' <param name="serviceName">Name of the service.</param> ''' <returns>ServiceController.</returns> Private Function LoadService(serviceName As String) As  ServiceController     Return ServiceController.GetServices().Where(Function(p)  p.ServiceName = serviceName).FirstOrDefault() End Function Here are the values for service status: ContinuePending Paused PausePending Running StartPending [...]

Properly Implementing the Singleton Pattern

One of the popular coding patterns is called Singleton. I use it currently in my dotNetTips Dev Utility for the configuration object. The pattern is defined: In software engineering, the singleton pattern is a software design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is [...]

dotNetDave Rocks Azure BootCamp – 2017

For the first time I will speaking at the Azure BootCamp in Southern California on Saturday April 22nd. I hope to see you there. I will be doing the session below. Rock Your Development With A Real World Example This session will demonstrate concepts in the first four parts of my series titled "Improving Code [...]