20140419 xamarin zumo
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

20140419 xamarin zumo

  • 232 views
Uploaded on

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

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

More 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
232
On Slideshare
232
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); } }