public class MyComposablePart : ComposablePart
{
public override IEnumerable<ExportDefinition> ExportDefinitions
{
get { throw new NotImplementedException(); }
}
public override IEnumerable<ImportDefinition> ImportDefinitions
{
get { throw new NotImplementedException(); }
}
public override object GetExportedValue(ExportDefinition definition)
{
throw new NotImplementedException();
}
public override void SetImport(ImportDefinition definition, IEnumerable<Export> exports)
{
throw new NotImplementedException();
}
}
public class MyComposablePartDefinition : ComposablePartDefinition
{
public override IEnumerable<ExportDefinition> ExportDefinitions
{
get { throw new NotImplementedException(); }
}
public override IEnumerable<ImportDefinition> ImportDefinitions
{
get { throw new NotImplementedException(); }
}
public override ComposablePart CreatePart()
{
throw new NotImplementedException();
}
}
public class MyComposablePartCatalog : ComposablePartCatalog
{
public override IQueryable<ComposablePartDefinition> Parts
{
get { throw new NotImplementedException(); }
}
}
とりあえず未実装ですが、抽象クラスを並べてみました。仕様を決めてカタログを自作できそう?これでは不十分?
抽象クラスのみを使用してカタログを自作するのは難しすぎますね。既存のカタログを拡張する程度がいいのかな?
- 2010.05.21 Friday
- MEF
- 22:22
- comments(0)
- trackbacks(0)


- by art55


















