Added this switch to cover the case where you want to use the Emulator but not the Cache Service. Could have used RoleEnvironment.IsEmulated, but why make AzureCacheEndpoint mandatory anyway? :)