Example #1
0
 internal SpeechJournalAwaiter(Cancellation cancellation, SpeechJournalSource journalSource = null,
                               SpeechJournal journal = null, Func <TimeSpan?> defaultTimeout = null, DiagnosticTrace trace = null)
 {
     this.cancellation   = cancellation;
     this.journalSource  = journalSource;
     this.journal        = journal;
     this.defaultTimeout = defaultTimeout;
     this.trace          = trace;
 }
Example #2
0
 internal SpeechJournal(SpeechJournalSource source, Cancellation cancellation = null,
                        Func <TimeSpan?> defaultTimeout = null, DiagnosticTrace trace = null)
 {
     this.source         = source;
     this.cancellation   = cancellation;
     this.defaultTimeout = defaultTimeout;
     this.trace          = trace;
     journalEntryStartId = source.CurrentJournalEntryId;
     LastWaitEntryId     = journalEntryStartId;
 }
Example #3
0
 internal SpeechJournalSource(DiagnosticTrace trace = null)
 {
     lastActionJournalEntryId = new ThreadLocal <long>(false);
     this.trace = trace;
 }
Example #4
0
 internal GlobalTrace(ILogger baseLogger)
 {
     logger       = new ScriptTraceLogger(baseLogger);
     JournalTrace = new DiagnosticTrace(baseLogger);
 }
Example #5
0
 internal GlobalTrace(IConsole baseConsole)
 {
     logger       = new ScriptTraceLogger(baseConsole);
     JournalTrace = new DiagnosticTrace(baseConsole);
 }