Answers
- Web role and worker role.
- Web roles run on dedicated virtual machines, which can be debugged remotely using IntelliTrace and allow advanced configuration and debugging with remote desktop and start-up tasks available on the virtual machines.
RoleEntryPoint
.OnStart
,Run
, andOnStop
.- The role will recycle.
- Use the
WAStorageEmulator.exe status
command. Complete
orCompleteAsync
.- As the tasks are asynchronous, they are queued onto the thread pool and not called immediately, so the calling method continues and is not blocked. We need to use
Task.Wait
orTask.WaitAll
to block the thread while the tasks(s) complete; otherwise, the role will recycle. WindowsAzure.Storage
andInstall-package WindowsAzure.Storage
.- Call the
CloudQueue.Delete
method. - Set the role instances in the role config and switch to using the full emulator in the project config.
- If we're not currently using a role instance during development, it's a good idea to delete it during development as we will be incurring charges...