/// <summary> /// Initializes a new instance of the <see cref="AsyncContextSynchronizationContext"/> class. /// </summary> /// <param name="context">The async context.</param> public AsyncContextSynchronizationContext(AsyncContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="AsyncContextTaskScheduler"/> class. /// </summary> /// <param name="context">The async context for this task scheduler. May not be <c>null</c>.</param> public AsyncContextTaskScheduler(AsyncContext context) { _context = context; }
public DebugView(AsyncContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="AsyncContextThread"/> class, creating a child thread waiting for commands. If <paramref name="sta"/> is <c>true</c>, then the child thread is an STA thread (throwing <see cref="NotSupportedException"/> if the platform does not support STA threads). /// </summary> public AsyncContextThread(bool sta) { _context = new AsyncContext(); _context.SynchronizationContext.OperationStarted(); _thread = new SingleThreadedApartmentThread(Execute, sta); }