Amazon AWS SDK Podręcznik Użytkownika Strona 92

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 155
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 91
Console.WriteLine(" Notifications:");
Console.WriteLine(" Topic: {0}",
responseNotifications.VaultNotificationConfig.SNSTopic);
var events = responseNotifications.VaultNotificationConfig.Events;
if (events.Any())
{
Console.WriteLine(" Events:");
foreach (var e in events)
{
Console.WriteLine("{0}", e);
}
}
else
{
Console.WriteLine(" No events set.");
}
}
catch (ResourceNotFoundException)
{
Console.WriteLine(" No notifications set.");
}
var requestJobs = new ListJobsRequest{
VaultName = vault.VaultName
};
var responseJobs = client.ListJobs(requestJobs);
var jobs = responseJobs.JobList;
if (jobs.Any())
{
Console.WriteLine(" Jobs:");
foreach (var job in jobs)
{
Console.WriteLine(" For job ID: {0}",
job.JobId);
Console.WriteLine("Archive ID: {0}",
job.ArchiveId);
Console.WriteLine("Archive size in bytes: {0}",
job.ArchiveSizeInBytes.ToString());
Console.WriteLine("Completed: {0}",
job.Completed);
Console.WriteLine("Completion date: {0}",
job.CompletionDate);
Console.WriteLine("Creation date: {0}",
job.CreationDate);
Console.WriteLine("Inventory size in bytes: {0}",
job.InventorySizeInBytes);
Console.WriteLine("Job description: {0}",
job.JobDescription);
Console.WriteLine("Status code: {0}",
job.StatusCode.Value);
Console.WriteLine("Status message: {0}",
Version v2.0.0
88
AWS SDK for .NET Developer Guide
Programming Models
Przeglądanie stron 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 154 155

Komentarze do niniejszej Instrukcji

Brak uwag