Example #1
0
 HexEditorOperationsFactoryServiceImpl(HexHtmlBuilderService htmlBuilderService, HexBufferFileServiceFactory hexBufferFileServiceFactory, Lazy <HexStructureInfoAggregatorFactory> hexStructureInfoAggregatorFactory, Lazy <HexReferenceHandlerService> hexReferenceHandlerService, Lazy <HexFileStructureInfoServiceFactory> hexFileStructureInfoServiceFactory)
 {
     this.htmlBuilderService                 = htmlBuilderService;
     this.hexBufferFileServiceFactory        = hexBufferFileServiceFactory;
     this.hexStructureInfoAggregatorFactory  = hexStructureInfoAggregatorFactory;
     this.hexReferenceHandlerService         = hexReferenceHandlerService;
     this.hexFileStructureInfoServiceFactory = hexFileStructureInfoServiceFactory;
 }
Example #2
0
 BufferFileCreator(ITheDebugger theDebugger, HexBufferFileServiceFactory hexBufferFileServiceFactory, IDebuggerHexBufferStreamProvider debuggerHexBufferStreamProvider)
 {
     this.theDebugger = theDebugger;
     this.hexBufferFileServiceFactory     = hexBufferFileServiceFactory;
     this.debuggerHexBufferStreamProvider = debuggerHexBufferStreamProvider;
     moduleReferences = new Dictionary <HexPosition, int>();
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #3
0
 public HexFileStructureInfoServiceImpl(HexView hexView, HexBufferFileServiceFactory hexBufferFileServiceFactory, Lazy <HexFileStructureInfoProviderFactory, IOrderable>[] hexFileStructureInfoProviderFactories)
 {
     if (hexBufferFileServiceFactory == null)
     {
         throw new ArgumentNullException(nameof(hexBufferFileServiceFactory));
     }
     this.hexView         = hexView ?? throw new ArgumentNullException(nameof(hexView));
     hexBufferFileService = hexBufferFileServiceFactory.Create(hexView.Buffer);
     this.hexFileStructureInfoProviderFactories = hexFileStructureInfoProviderFactories ?? throw new ArgumentNullException(nameof(hexFileStructureInfoProviderFactories));
 }
Example #4
0
 // UI thread
 public ModuleListener(HexBufferFileServiceFactory hexBufferFileServiceFactory, IHexBufferInfo hexBufferInfo, UIDispatcher uiDispatcher)
 {
     uiDispatcher.VerifyAccess();
     this.hexBufferInfo   = hexBufferInfo;
     this.uiDispatcher    = uiDispatcher;
     runtimes             = new List <DbgRuntime>();
     moduleReferences     = new Dictionary <HexPosition, int>();
     addedModules         = new HashSet <DbgModule>();
     hexBufferFileService = hexBufferFileServiceFactory.Create(hexBufferInfo.Buffer);
     hexBufferInfo.UnderlyingProcessChanged += HexBufferInfo_UnderlyingProcessChanged;
     hexBufferInfo.Buffer.Disposed          += Buffer_Disposed;
     OnProcessChanged_UI();
 }
 public DefaultHexStructureInfoProvider(HexView hexView, HexBufferFileServiceFactory hexBufferFileServiceFactory, HexFileStructureInfoServiceFactory hexFileStructureInfoServiceFactory)
 {
     if (hexView is null)
     {
         throw new ArgumentNullException(nameof(hexView));
     }
     if (hexBufferFileServiceFactory is null)
     {
         throw new ArgumentNullException(nameof(hexBufferFileServiceFactory));
     }
     if (hexFileStructureInfoServiceFactory is null)
     {
         throw new ArgumentNullException(nameof(hexFileStructureInfoServiceFactory));
     }
     hexBufferFileService        = hexBufferFileServiceFactory.Create(hexView.Buffer);
     hexFileStructureInfoService = hexFileStructureInfoServiceFactory.Create(hexView);
 }
 HexBufferFileBufferServiceListener(HexBufferFileServiceFactory hexBufferFileServiceFactory)
 {
     this.hexBufferFileServiceFactory = hexBufferFileServiceFactory;
 }
 DefaultHexStructureInfoProviderFactory(HexBufferFileServiceFactory hexBufferFileServiceFactory, HexFileStructureInfoServiceFactory hexFileStructureInfoServiceFactory)
 {
     this.hexBufferFileServiceFactory        = hexBufferFileServiceFactory;
     this.hexFileStructureInfoServiceFactory = hexFileStructureInfoServiceFactory;
 }
Example #8
0
 HexFileStructureInfoServiceFactoryImpl(HexBufferFileServiceFactory hexBufferFileServiceFactory, [ImportMany] IEnumerable <Lazy <HexFileStructureInfoProviderFactory, VSUTIL.IOrderable> > hexFileStructureInfoProviderFactories)
 {
     this.hexBufferFileServiceFactory           = hexBufferFileServiceFactory;
     this.hexFileStructureInfoProviderFactories = VSUTIL.Orderer.Order(hexFileStructureInfoProviderFactories).ToArray();
 }