AllocateAddress() private méthode

private AllocateAddress ( ) : AllocateAddressResponse
Résultat Amazon.EC2.Model.AllocateAddressResponse
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			var client = new AmazonEC2Client (new BasicAWSCredentials (ACCESS_KEY, SECRET_KEY), Amazon.RegionEndpoint.USEast1);
			var response = client.AllocateAddress ();

			var textView = new UITextView (new RectangleF (new PointF (64.0f, 64.0f), new SizeF (96.0f, 32.0f)));

			textView.Text = response.PublicIp;

			this.View.AddSubview (textView);
		}
Exemple #2
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.Main);

			var textView = FindViewById<TextView> (Resource.Id.textView1);

			var client = new AmazonEC2Client (new BasicAWSCredentials (ACCESS_KEY, SECRET_KEY), Amazon.RegionEndpoint.USEast1);
			var response = client.AllocateAddress ();

			textView.Text = response.PublicIp;
		}