public void Dispose() { _browserAPIManager.MemoryHandler = null; _browserAPIManager = null; _memoryManager = null; _container = null; }
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); }
public void Dispose() { _browserAPIManager.OnUIReadyChanged -= BrowserAPIManager_OnUIReadyChanged; _browserAPIManager.ChatHandler = null; _browserAPIManager = null; _chatManager.OnChatMessage -= ChatManager_ChatMessageEvent; _chatManager = null; _container = null; }
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; }
public void Dispose() { _configManager.OnProfileChange -= ConfigManager_SynchronizeJSConfig; _configManager.RemovePropertyChangeListener(ConfigManager_SynchronizeJSConfig); _browserAPIManager.ConfigHandler = null; _browserAPIManager = null; _chatManager = null; _configManager = null; _container = null; }
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); }
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; }
public void Dispose() { _browserAPIManager.ActorHandler = null; _browserAPIManager = null; _container = null; }
public void Initialize(ApplicationStartupHandler handler, IDIContext container) { _container = container ?? throw new ArgumentNullException(nameof(container)); _browserAPIManager = _container.Resolve <IBrowserAPIManager>(); _browserAPIManager.ActorHandler = new ActorHandler(container); }