Exemplo n.º 1
0
        public IAwaitAction CreateAlternative(Action action, string Name)
        {
            var entry = new AltEntry(this, action);

            m_alternatives.Add(entry);
            return(entry);
        }
Exemplo n.º 2
0
 private bool ReportEvent(AltEntry alt)
 {
     if (m_type == AltType.Interleave || m_trigged.Count == 0)
     {
         m_trigged.Enqueue(alt);
         return(true);
     }
     else
     {
         return(false);
     }
 }