예제 #1
0
 public void Dispose()
 {
     _browserAPIManager.MemoryHandler = null;
     _browserAPIManager = null;
     _memoryManager     = null;
     _container         = null;
 }
예제 #2
0
        public void Initialize(ApplicationStartupHandler handler, IDIContext container)
        {
            _container         = container ?? throw new ArgumentNullException(nameof(container));
            _browserAPIManager = _container.Resolve <IBrowserAPIManager>();
            _memoryManager     = _container.Resolve <IMemoryReaderManager>();

            _browserAPIManager.MemoryHandler = new BrowserMemoryHandler(this);
        }
예제 #3
0
        public void Dispose()
        {
            _browserAPIManager.OnUIReadyChanged -= BrowserAPIManager_OnUIReadyChanged;
            _browserAPIManager.ChatHandler       = null;
            _browserAPIManager = null;

            _chatManager.OnChatMessage -= ChatManager_ChatMessageEvent;
            _chatManager = null;
            _container   = null;
        }
예제 #4
0
        public void Initialize(ApplicationStartupHandler handler, IDIContext container)
        {
            _container         = container ?? throw new ArgumentNullException(nameof(container));
            _chatManager       = _container.Resolve <IChatManager>();
            _browserAPIManager = _container.Resolve <IBrowserAPIManager>();

            _browserAPIManager.ChatHandler = new GobchatBrowserChatAPI(_chatManager);

            _browserAPIManager.OnUIReadyChanged += BrowserAPIManager_OnUIReadyChanged;
            _chatManager.OnChatMessage          += ChatManager_ChatMessageEvent;
        }
예제 #5
0
        public void Dispose()
        {
            _configManager.OnProfileChange -= ConfigManager_SynchronizeJSConfig;
            _configManager.RemovePropertyChangeListener(ConfigManager_SynchronizeJSConfig);

            _browserAPIManager.ConfigHandler = null;
            _browserAPIManager = null;
            _chatManager       = null;
            _configManager     = null;
            _container         = null;
        }
예제 #6
0
        public void Initialize(ApplicationStartupHandler handler, IDIContext container)
        {
            _container         = container ?? throw new ArgumentNullException(nameof(container));
            _browserAPIManager = _container.Resolve <IBrowserAPIManager>();
            _configManager     = _container.Resolve <IConfigManager>();
            _chatManager       = _container.Resolve <IChatManager>();

            _browserAPIManager.ConfigHandler = new BrowserConfigHandler(this);

            _configManager.OnProfileChange += ConfigManager_SynchronizeJSConfig;
            _configManager.AddPropertyChangeListener("*", ConfigManager_SynchronizeJSConfig);
        }
예제 #7
0
        public void Initialize(ApplicationStartupHandler handler, IDIContext container)
        {
            _container         = container ?? throw new ArgumentNullException(nameof(container));
            _configManager     = _container.Resolve <IConfigManager>();
            _browserAPIManager = _container.Resolve <IBrowserAPIManager>();

            var uiManager = _container.Resolve <IUIManager>();

            _cefOverlay = uiManager.GetUIElement <CefOverlayForm>(AppModuleChatOverlay.OverlayUIId);

            _cefOverlay.Browser.OnBrowserLoadPage     += Browser_BrowserLoadPage;
            _cefOverlay.Browser.OnBrowserLoadPageDone += Browser_BrowserLoadPageDone;
            _cefOverlay.Browser.OnBrowserInitialized  += Browser_BrowserInitialized;
        }
예제 #8
0
 public void Dispose()
 {
     _browserAPIManager.ActorHandler = null;
     _browserAPIManager = null;
     _container         = null;
 }
예제 #9
0
 public void Initialize(ApplicationStartupHandler handler, IDIContext container)
 {
     _container         = container ?? throw new ArgumentNullException(nameof(container));
     _browserAPIManager = _container.Resolve <IBrowserAPIManager>();
     _browserAPIManager.ActorHandler = new ActorHandler(container);
 }