Exemplo n.º 1
0
        async void _installationManager_PackageInstallationFailed(object sender, InstallationFailedEventArgs e)
        {
            var installationInfo = e.InstallationInfo;

            var type = NotificationType.InstallationFailed.ToString();

            var notification = new NotificationRequest
            {
                Level            = NotificationLevel.Error,
                Description      = e.Exception.Message,
                NotificationType = type
            };

            notification.Variables["Name"]    = installationInfo.Name;
            notification.Variables["Version"] = installationInfo.Version;

            await SendNotification(notification).ConfigureAwait(false);
        }
Exemplo n.º 2
0
        private async void OnPackageInstallationFailed(object sender, InstallationFailedEventArgs e)
        {
            var installationInfo = e.InstallationInfo;

            await CreateLogEntry(new ActivityLog(
                                     string.Format(
                                         CultureInfo.InvariantCulture,
                                         _localization.GetLocalizedString("NameInstallFailed"),
                                         installationInfo.Name),
                                     NotificationType.InstallationFailed.ToString(),
                                     Guid.Empty)
            {
                ShortOverview = string.Format(
                    CultureInfo.InvariantCulture,
                    _localization.GetLocalizedString("VersionNumber"),
                    installationInfo.Version),
                Overview = e.Exception.Message
            }).ConfigureAwait(false);
        }
Exemplo n.º 3
0
 private async void OnPackageInstallationFailed(object sender, InstallationFailedEventArgs e)
 {
     await SendMessageToAdminSessions("PackageInstallationFailed", e.InstallationInfo).ConfigureAwait(false);
 }
Exemplo n.º 4
0
 void _installationManager_PackageInstallationFailed(object sender, InstallationFailedEventArgs e)
 {
     SendMessageToAdminSessions("PackageInstallationFailed", e.InstallationInfo);
 }
Exemplo n.º 5
0
 void _installationManager_PackageInstallationFailed(object sender, InstallationFailedEventArgs e)
 {
     _serverManager.SendWebSocketMessage("PackageInstallationFailed", e.InstallationInfo);
 }
Exemplo n.º 6
0
 void _installationManager_PackageInstallationFailed(object sender, InstallationFailedEventArgs e)
 {
     Dispatcher.InvokeAsync(UpdateInProgressInstallations);
 }
Exemplo n.º 7
0
 private void OnPackageInstallationFailed(object sender, InstallationFailedEventArgs e)
 {
     SendMessageToAdminSessions("PackageInstallationFailed", e.InstallationInfo);
 }