Bari.Core.Tools.DownloadableExternalTool.EnsureToolAvailable C# (CSharp) Метод

EnsureToolAvailable() защищенный Метод

Checks if the tool is available and download, copy, install etc. it if possible

If the tool cannot be acquired then it throws an exception.

protected EnsureToolAvailable ( ) : void
Результат void
        protected override void EnsureToolAvailable()
        {
            if (!File.Exists(Path.Combine(bariInstallLocation, executableName)) &&
                !File.Exists(Path.Combine(defaultInstallLocation, executableName)))
            {
                DownloadTool();
            }
        }