Refactoring IsRegistered to the wcf console service