Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. WPF Image Manipulation in an Azure Worker Role
  2. public class WorkerRole : RoleEntryPoint
  3. {
  4.     public override void Run()
  5.     {
  6.         Thread thread = new Thread(new ThreadStart(MyWPFCode));
  7.         thread.SetApartmentState(ApartmentState.STA);
  8.         thread.Start();
  9.  
  10.         while (true)
  11.         {
  12.             Thread.Sleep(10000);
  13.         }
  14.     }
  15.  
  16.     private void MyWPFCode()
  17.     {
  18.         // WPF code goes here.
  19.     }
  20. }