Ejemplo n.º 1
0
        // Called internally from the Register() call, or via the control function from another server.
        internal static bool Activate()
        {
            try
            {
                SetActiveRegistrationInfo();
                _isActive = true;

                _helper = new IntelliSenseHelper();
                // TODO: Perhaps also register macro to trigger updates
                return(true);
            }
            catch (Exception ex)
            {
                Logger.Initialization.Error($"IntelliSenseServer.Activate failed: {ex}");
                return(false);
            }
        }
        // Called internally from the Register() call, or via the control function from another server.
        internal static bool Activate()
        {
            try
            {
                SetActiveRegistrationInfo();
                _isActive = true;

                // Now initialize (TODO: perhaps lazily...?)
                _helper = new IntelliSenseHelper();
                // TODO: Perhaps also register macro to trigger updates
                return(true);
            }
            catch (Exception /*ex*/)
            {
                // TOOD: Log
                return(false);
            }
        }