本文整理匯總了C#中System.Log.In_Process方法的典型用法代碼示例。如果您正苦於以下問題:C# Log.In_Process方法的具體用法?C# Log.In_Process怎麽用?C# Log.In_Process使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Log
的用法示例。
在下文中一共展示了Log.In_Process方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Build_index
public Build_index(Compile_words compileWords, Write_index_to_file writeIndexToFile)
{
var joinIndexAndFilename = new Join<Index, string>();
var logStats = new Log<IndexStats>(stats => string.Format("{0} words indexed", stats.WordCount));
var logFileWords = new Log<Tuple<string, string[]>>(fileWords =>
fileWords != null ? string.Format("{0}, {1} words", fileWords.Item1, fileWords.Item2.Count())
: "EOD of words to index");
this.in_Process = _ => logFileWords.In_Process(_);
logFileWords.Out_Data += compileWords.In_Process;
compileWords.Out_Statistics += logStats.In_Process;
logStats.Out_Data += _ => this.Out_Statistics(_);
compileWords.Out_IndexCompiled += joinIndexAndFilename.Input0;
this.in_IndexFilename = joinIndexAndFilename.Input1;
joinIndexAndFilename.Output += writeIndexToFile.In_Process;
}