Beispiel #1
0
        /// <summary>
        /// Loads the specified driver.
        /// </summary>
        public bool LoadDriver()
        {
            if (!this.IsCreated)
            {
                throw new Exception("Driver is not created.");
            }

            if (this.IsLoaded)
            {
                return(true);
            }

            if (Turla.LoadDriver(this.Driver.DriverFile.FullName))
            {
                this.IsLoaded = true;
                return(true);
            }

            return(false);
        }
Beispiel #2
0
        /// <summary>
        /// Loads the specified driver.
        /// </summary>
        public bool LoadDriver()
        {
            if (!this.IsCreated)
            {
                throw new Exception("Service is not created.");
            }

            if (this.IsLoaded)
            {
                return true;
            }

            this.IsLoaded = Turla.LoadDriver(this.Driver.Config.DriverFile.FullName);

            if (this.IsLoaded)
            {
                return true;
            }

            return false;
        }