Пример #1
0
        public void OnImportsSatisfied()
        {
            // Save the synchronization context of the main thread
            FSyncContext = SynchronizationContext.Current;
            // Runtime host needs to be created on the main thread due to COM access
            FHDEHost.MouseDown += HandleMouseDown;
            FHDEHost.WindowSelectionChanged += HandleWindowSelectionChanged;

            Host.Initialize(FHDEHost, FLogger);

            // Add our IO factory to the registry
            var registry = new StreamRegistry();

            FIORegistry.Register(registry, true);

            Host.Platform.CompilationUpdated += Platform_CompilationUpdated;
        }
Пример #2
0
 public void Register(IIORegistry registry, bool first)
 {
     FRegistry.Register(registry, first);
 }