Exemplo n.º 1
0
        public STASynchronizationContext(STAThread staThread)
        {
            #region Contracts

            if (staThread == null) throw new ArgumentNullException();

            #endregion

            // STAThread
            _staThread = staThread;
        }
Exemplo n.º 2
0
 // Constructors
 public STASynchronizationContext()
 {
     // STAThread
     _staThread = new STAThread();
     _staThread.Start();
 }