Esempio n. 1
0
        /// <summary>
        /// Releases the unmanaged resources used by the <see cref="ProcessRunner"/> and optionally disposes of the managed resources.
        /// </summary>
        /// <param name="disposing">true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                //dispose managed resources
                PC.stop();
                is_enable?.Dispose();
                config_name?.Dispose();
                status?.Dispose();
                binding_process?.Dispose();
                PC?.Dispose();
            }

            _disposed = true;
        }
Esempio n. 2
0
 public void kill_config()
 {
     PC.stop();
 }