Your SlideShare is downloading. ×
  • Like
20140419 xamarin zumo
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

20140419 xamarin zumo

  • 110 views
Published

C# で全部書こう!XamarinでZUMO (Azure Mobile Services)

C# で全部書こう!XamarinでZUMO (Azure Mobile Services)

Published in Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
110
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 仕事 個人活動 http://bit.ly/metrotokyo4 http://tech.tanaka733.net
  • 2. Microsoft
  • 3. • 基本無料プラン
  • 4. WindowsAzure.MobileServices PCLとして共通化 • プラットフォームごとのライブラリ
  • 5. public static MobileServiceClient MobileService = new MobileServiceClient( "https://xamarinazure.azure-mobile.net/", “HogeMogeApplcationKey" ); private async Task TestAsync() { var res = await MobileService.InvokeApiAsync<string>("test"); // textBox.Text = res; }
  • 6. ブログ記事 public class TodoItemController : TableController<TodoItem> { protected override void Initialize(HttpControllerContext controllerContext) { base.Initialize(controllerContext); var context = new XamarinAzureServiceContext(Services.Settings.Schema); DomainManager = new EntityDomainManager<TodoItem>(context, Request, Services); } // GET tables/TodoItem public IQueryable<TodoItem> GetAllTodoItems() { return Query(); }
  • 7. AuthorizeLevel 属性で認証レベルを制御 public class TestController : ApiController { public ApiServices Services { get; set; } // GET api/Test [AuthorizeLevel(AuthorizationLevel.Anonymous)] public string Get() { Services.Log.Info("Hello from custom controller!"); return "Hello"; } }
  • 8. public class SampleJob : ScheduledJob { public override Task ExecuteAsync() { Services.Log.Info("Hello from scheduled job!"); return Task.FromResult(true); } }