// Get bucket notifications - this works only with AWS endpoint public async static Task Run(Minio.MinioClient minio, string bucketName = "my-bucket-name") { try { Console.Out.WriteLine("Running example for API: GetBucketNotificationsAsync"); BucketNotification notifications = await minio.GetBucketNotificationsAsync(bucketName); Console.Out.WriteLine("Notifications is " + notifications.ToXML() + " for bucket " + bucketName); Console.Out.WriteLine(); } catch (Exception e) { Console.Out.WriteLine("Error parsing bucket notifications - make sure that you are running this call against AWS end point: " + e.Message); } }