Beispiel #1
0
        /// <summary>
        /// Deletes the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Delete(CancelPackageInstallation request)
        {
            var info = _installationManager.CurrentInstallations.FirstOrDefault(i => string.Equals(i.Item1.Id, request.Id));

            if (info != null)
            {
                info.Item2.Cancel();
            }
        }
Beispiel #2
0
 /// <summary>
 /// Deletes the specified request.
 /// </summary>
 /// <param name="request">The request.</param>
 public void Delete(CancelPackageInstallation request)
 {
     _installationManager.CancelInstallation(new Guid(request.Id));
 }