Example #1
0
 public DocumentReader()
 {
     _container.Register <ExcelReader>(DocumentType.Excel);
     _container.Register <WordReader>(DocumentType.Word);
     _container.Register <WordReader>(DocumentType.RTF);
     _container.Register <PDFReader>(DocumentType.PDF);
     _container.Register <PPTReader>(DocumentType.PPT);
     _container.Register <TextReader>(DocumentType.TXT);
 }
Example #2
0
 public static void Register <U>(this ReaderContainer container, DocumentType documentType) where U : IReader
 {
     container.Register(documentType, typeof(U));
 }