C# Class System.ComponentModel.Composition.CompositionDumper

Dumps parts, exports and imports to a text file. Useful to diff the results of two compositions to verify that different ways to compose produce same results.
显示文件 Open project: KirillOsenkov/MEFMetadata Class Usage Examples

Public Methods

Method Description
TimeComposition ( IEnumerable catalogs, string outputFilePath = null ) : string
TouchCatalog ( ComposablePartCatalog composablePartCatalog ) : System.Threading.Tasks.Task
TouchContainer ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : void
TouchPart ( System.ComponentModel.Composition.Primitives.ComposablePartDefinition part ) : void
WriteTo ( System.ComponentModel.Composition.Hosting.CompositionContainer compositionContainer, TextWriter writer ) : void
WriteTo ( System.ComponentModel.Composition.Hosting.CompositionContainer compositionContainer, string fileName ) : void

Private Methods

Method Description
BuildCatalog ( ComposablePartCatalog composablePartCatalog ) : void
CompositionDumper ( TextWriter writer ) : System.Collections.Generic
Dump ( string p ) : void
DumpExport ( System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, System.ComponentModel.Composition.Primitives.ExportDefinition e ) : void
DumpImport ( System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, System.ComponentModel.Composition.Primitives.ImportDefinition i ) : void
DumpPart ( System.ComponentModel.Composition.Primitives.ComposablePartDefinition part ) : void

Method Details

TimeComposition() public static method

public static TimeComposition ( IEnumerable catalogs, string outputFilePath = null ) : string
catalogs IEnumerable
outputFilePath string
return string

TouchCatalog() public static method

public static TouchCatalog ( ComposablePartCatalog composablePartCatalog ) : System.Threading.Tasks.Task
composablePartCatalog ComposablePartCatalog
return System.Threading.Tasks.Task

TouchContainer() public static method

public static TouchContainer ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : void
container System.ComponentModel.Composition.Hosting.CompositionContainer
return void

TouchPart() public static method

public static TouchPart ( System.ComponentModel.Composition.Primitives.ComposablePartDefinition part ) : void
part System.ComponentModel.Composition.Primitives.ComposablePartDefinition
return void

WriteTo() public static method

public static WriteTo ( System.ComponentModel.Composition.Hosting.CompositionContainer compositionContainer, TextWriter writer ) : void
compositionContainer System.ComponentModel.Composition.Hosting.CompositionContainer
writer System.IO.TextWriter
return void

WriteTo() public static method

public static WriteTo ( System.ComponentModel.Composition.Hosting.CompositionContainer compositionContainer, string fileName ) : void
compositionContainer System.ComponentModel.Composition.Hosting.CompositionContainer
fileName string
return void