Exemplo n.º 1
0
	    public WpfSchedulers(DispatcherScheduler dispatcher, IPriorityScheduler priorityDispatcher, IPriorityScheduler threadPool)
	    {
			if (dispatcher == null) throw new ArgumentNullException("dispatcher");
			if (priorityDispatcher == null) throw new ArgumentNullException("priorityDispatcher");
			if (threadPool == null) throw new ArgumentNullException("threadPool");
			_dispatcher = dispatcher;
			_threadPool = threadPool;
			_priorityDispatcher = priorityDispatcher;
	    }
Exemplo n.º 2
0
		public WinRtSchedulers(CoreDispatcherScheduler coreDispatcher, IPriorityScheduler dispatcher, IPriorityScheduler threadPool)
		{
			if (coreDispatcher == null) throw new ArgumentNullException("coreDispatcher");
			if (dispatcher == null) throw new ArgumentNullException("dispatcher");
			if (threadPool == null) throw new ArgumentNullException("threadPool");
			_coreDispatcher = coreDispatcher;
			_dispatcher = dispatcher;
			_threadPool = threadPool;
		}
Exemplo n.º 3
0
 public WpfSchedulers(DispatcherScheduler dispatcher, IPriorityScheduler priorityDispatcher, IPriorityScheduler threadPool)
 {
     if (dispatcher == null)
     {
         throw new ArgumentNullException("dispatcher");
     }
     if (priorityDispatcher == null)
     {
         throw new ArgumentNullException("priorityDispatcher");
     }
     if (threadPool == null)
     {
         throw new ArgumentNullException("threadPool");
     }
     _dispatcher         = dispatcher;
     _threadPool         = threadPool;
     _priorityDispatcher = priorityDispatcher;
 }
Exemplo n.º 4
0
 public WinRtSchedulers(CoreDispatcherScheduler coreDispatcher, IPriorityScheduler dispatcher, IPriorityScheduler threadPool)
 {
     if (coreDispatcher == null)
     {
         throw new ArgumentNullException("coreDispatcher");
     }
     if (dispatcher == null)
     {
         throw new ArgumentNullException("dispatcher");
     }
     if (threadPool == null)
     {
         throw new ArgumentNullException("threadPool");
     }
     _coreDispatcher = coreDispatcher;
     _dispatcher     = dispatcher;
     _threadPool     = threadPool;
 }
Exemplo n.º 5
0
 public SingleSchedulers(IPriorityScheduler scheduler)
 {
     _scheduler = scheduler;
 }