public OneNoteDocumentConnector(
     ILogger <OneNoteDocumentConnector> logger,
     IOneNoteAppWrapper oneNoteApp)
 {
     this.logger     = logger;
     this.oneNoteApp = oneNoteApp;
 }
示例#2
0
        public OneNoteDocumentHandler(
            IDocumentId documentId,
            IOneNoteAppWrapper oneNoteApp,
            ILogger logger)
        {
            this.logger     = logger;
            this.oneNoteApp = oneNoteApp;

            DocumentId = documentId;
        }
示例#3
0
        public void Init()
        {
            base.Init();

            this.documentProvider = ServiceProvider.GetService <OneNoteProvider>();
            this.oneNoteApp       = ServiceProvider.GetService <IOneNoteAppWrapper>();
            this.analyzer         = ServiceProvider.GetService <IAnalyzer>();
            this.documentParseResultProcessings = ServiceProvider.GetServices <IDocumentParseResultProcessing>()
                                                  .OrderBy(rp => rp.Order);
            this.mediator = ServiceProvider.GetService <IMediator>();
        }
示例#4
0
 public Handler(IOneNoteAppWrapper oneNoteAppWrapper, IMapper mapper)
 {
     this.oneNoteAppWrapper = oneNoteAppWrapper;
     this.mapper            = mapper;
 }
示例#5
0
 public Handler(IOneNoteAppWrapper oneNoteAppWrapper)
 {
     this.oneNoteAppWrapper = oneNoteAppWrapper;
 }
示例#6
0
 public NotebookIterator(IOneNoteAppWrapper oneNoteApp)
 {
     this.oneNoteApp = oneNoteApp;
     this.xNamespace = OneNoteConstants.OneNoteXmlNs;
 }