Getting ClientContext in worker Apps for SharePoint

When building Apps for SharePoint, ClientContext is the entry point for interacting with SharePoint. While most samples illustrate how to build it in the app, things look a little different for apps’ worker processes.