Candy.Client.Models.ApplicationManager.RegisterInstalledApplication C# (CSharp) Method

RegisterInstalledApplication() public method

public RegisterInstalledApplication ( string applicationPath ) : System.Threading.Tasks.Task
applicationPath string
return System.Threading.Tasks.Task
        public async Task RegisterInstalledApplication(string applicationPath)
        {
            if (Applications.Any(x => String.Equals(x.InstalledPath, applicationPath)))
            {
                RaiseError("既に登録済みのアプリケーションです。");
                return;
            }

            var application = new InstalledApplication(applicationPath);

            await application.InitializeAsync(_appInfo).ConfigureAwait(false);

            if (!application.IsSupported)
            {
                RaiseError("サポートされていないアプリケーションです。");
                return;
            }

            Applications.Add(application);

            await SaveAsync().ConfigureAwait(false);
        }
        /// <summary>