コード例 #1
0
        public STASynchronizationContext(STAThread staThread)
        {
            #region Contracts

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

            #endregion

            // STAThread
            _staThread = staThread;
        }
コード例 #2
0
 // Constructors
 public STASynchronizationContext()
 {
     // STAThread
     _staThread = new STAThread();
     _staThread.Start();
 }