Bari.Core.Tools.DownloadableExternalTool.EnsureToolAvailable C# (CSharp) Méthode

EnsureToolAvailable() protected méthode

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
Résultat void
        protected override void EnsureToolAvailable()
        {
            if (!File.Exists(Path.Combine(bariInstallLocation, executableName)) &&
                !File.Exists(Path.Combine(defaultInstallLocation, executableName)))
            {
                DownloadTool();
            }
        }