- WPF Image Manipulation in an Azure Worker Role
- public class WorkerRole : RoleEntryPoint
- {
- public override void Run()
- {
- Thread thread = new Thread(new ThreadStart(MyWPFCode));
- thread.SetApartmentState(ApartmentState.STA);
- thread.Start();
- while (true)
- {
- Thread.Sleep(10000);
- }
- }
- private void MyWPFCode()
- {
- // WPF code goes here.
- }
- }