示例#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;
 }
示例#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;
 }
示例#3
0
 internal SpeechJournalSource(DiagnosticTrace trace = null)
 {
     lastActionJournalEntryId = new ThreadLocal <long>(false);
     this.trace = trace;
 }
示例#4
0
 internal GlobalTrace(ILogger baseLogger)
 {
     logger       = new ScriptTraceLogger(baseLogger);
     JournalTrace = new DiagnosticTrace(baseLogger);
 }
示例#5
0
 internal GlobalTrace(IConsole baseConsole)
 {
     logger       = new ScriptTraceLogger(baseConsole);
     JournalTrace = new DiagnosticTrace(baseConsole);
 }