Esempio n. 1
0
        private void detectBrokenPromise()
        {
            Task task;

            TasksFromDebugTaskCompletionSourceHolder.TryGetValue(this, out task);

            Debug.Assert(task != null);
            if (!task.IsCompleted)
            {
                throw new BrokenPromiseException(m_description);
            }
        }
Esempio n. 2
0
 private void registerTask()
 {
     TasksFromDebugTaskCompletionSourceHolder.Add(this, m_task);
 }