Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
            Logger.Info("CefRenderApplication disposing");
            if (disposing)
            {
                if (_disposed)
                {
                    return;
                }

                _disposed = true;

                if (_renderProcessHandler != null)
                {
                    _renderProcessHandler.Dispose();
                    _renderProcessHandler = null;
                }

                if (_router != null)
                {
                    _router.Dispose();
                    _router = null;
                }
            }
        }
Ejemplo n.º 2
0
 protected override CefRenderProcessHandler GetRenderProcessHandler()
 {
     if (_renderProcessHandler == null)
     {
         _router = new RenderSideMessageRouter();
         _renderProcessHandler = new CefWebRenderProcessHandler(_router);
     }
     return(_renderProcessHandler);
 }