{"id":228783,"date":"2014-07-23T20:44:02","date_gmt":"2014-07-23T16:44:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=228783"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=228783","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Android \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Xamarin \u0438 F#<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" align=\"right\" height=\"150\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/45f\/380\/50e\/45f38050ece3fa9b2e7e66028072ddf9.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442! <\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e Xamarin \u043e\u0431\u044a\u044f\u0432\u0438\u043b <a href=\"http:\/\/blog.xamarin.com\/contest-build-your-first-f-mobile-app\/\">\u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443<\/a> \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f F#.<br \/>  \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c Xamarin 3 \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 F#. \u042f \u0440\u0435\u0448\u0438\u043b \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f \u043e\u0442 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u044f \u0434\u0430\u0432\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u044e \u043d\u0430 F#, \u043d\u043e \u0448\u0430\u043d\u0441\u043e\u0432 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e. \u0414\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0430 \u043a\u0435\u043c-\u0442\u043e \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0433\u043e \u0432\u0437\u043b\u0435\u0442\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Yo. \u0412\u043e\u0442 \u0446\u0438\u0442\u0430\u0442\u0430:  <\/p>\n<blockquote><p>\u0418\u0434\u0435\u044f \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u0430, \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u00ab\u0442\u044b \u0433\u0434\u0435?\u00bb.<\/p>\n<p>  \u0421\u043c\u044b\u0441\u043b \u043f\u0440\u043e\u0441\u0442, \u0434\u0435\u0432\u0443\u0448\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432 \u043d\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0441\u0432\u043e\u0435\u0433\u043e \u043c\u043e\u043b\u043e\u0434\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0433\u043d\u043e\u043f\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u00ab\u0442\u044b \u0433\u0434\u0435?\u00bb #startup #idea  <\/p><\/blockquote>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u0438 \u043d\u0435\u0442?<\/p>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/b><br \/>  \u042f \u043f\u0438\u0441\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u043d\u0430\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439. <\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0424\u0443\u0442\u0431\u043e\u043b\u043e\u0447\u043a\u0430<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u044f \u0441\u0434\u0435\u043b\u0430\u043b, \u044d\u0442\u043e \u0441\u043a\u0430\u0447\u0430\u043b \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Xamarin Store \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0443\u0442\u0431\u043e\u043b\u043a\u0443 \u0441 F#. \u0422\u0430\u043a\u0430\u044f \u0436\u0435 \u0441 C# \u0443 \u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u0435\u0441\u0442\u044c  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/981\/448\/088\/981448088fb8d2927cc803582e321986.png\" alt=\"image\"\/><\/div>\n<p>  \u0412\u0435\u0440\u043d\u0435\u0435 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b, \u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0441\u0445\u0432\u0430\u0442\u0438\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\u043c. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Xamarin \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 F# \u0432\u0435\u0440\u0441\u0438\u0438 3.0, \u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u044f F# 3.1.1<\/p>\n<p>  F# 3.0 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 Visual Studio Express 2012 for Web \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0442\u0443\u0434\u0438\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Microsoft Web Platform Installer. \u0421\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<br \/>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b Xamarin \u0438 F# \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0431\u043e\u0440\u043a\u0430 FSharp.Core \u0432\u0435\u0440\u0441\u0438\u0438 4.3.0.0 \u0431\u044b\u043b\u0430 \u0432 GAC. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u043e\u0442 <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=261286\">\u043f\u0440\u044f\u043c\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/a> \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c.<\/p>\n<h4>\u041d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b<\/h4>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 Xamarin \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 F# \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 Xamarin Studio. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0431\u044b\u0442\u044c \u043e \u0441\u0432\u043e\u0435\u0439 \u043b\u044e\u0431\u0438\u043c\u043e\u0439 VS2013 \u0438 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439, \u0432 \u0446\u0435\u043b\u043e\u043c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439, \u0441\u0440\u0435\u0434\u0435. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 Android \u0437\u0430\u043d\u044f\u043b\u043e \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0432\u043e\u0442 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 Hello-world \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Android \u043d\u0430 F#  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">MainActivity.fs<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>namespace Xakpc.WhereAreYou.Droid  open System  open Android.App open Android.Content open Android.OS open Android.Runtime open Android.Views open Android.Widget  [&lt;Activity (Label = &quot;Xakpc.WhereAreYou.Droid&quot;, MainLauncher = true)&gt;] type WhereAreYouActivity () =     inherit Activity ()      let mutable count:int = 1      override this.OnCreate (bundle) =          base.OnCreate (bundle)          \/\/ Set our view from the &quot;main&quot; layout resource         this.SetContentView (Resource_Layout.Main)          \/\/ Get our button from the layout resource, and attach an event to it         let button = this.FindViewById&lt;Button&gt;(Resource_Id.myButton)         button.Click.Add (fun args -&gt;              button.Text &lt;- sprintf &quot;%d clicks!&quot; count             count &lt;- count + 1         ) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435 \u0425\u0430\u0431\u0440 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0441\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c F#. \u0413\u0440\u0443\u0441\u0442\u044c-\u0442\u043e\u0441\u043a\u0430 (\u0437\u0430\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Vala)<\/p>\n<h4>\u0421\u0440\u0430\u0437\u0443 \u0432 \u0411\u043e\u0439, \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043d\u043e\u043c\u0435\u0440 \u0440\u0430\u0437<\/h4>\n<p>  \u041a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, 3 \u044d\u043a\u0440\u0430\u043d\u0430, 3 \u043f\u0443\u0448 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u0441\u0442\u0430\u0440\u044b\u0439 \u0434\u043e\u0431\u0440\u044b\u0439 Azure \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u044d\u043a\u044d\u043d\u0434\u0430, \u0432\u044b\u0440\u0432\u0438\u0433\u043b\u0430\u0437\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 (inspired by Yo)<br \/>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043b\u0443\u0447\u0448\u0438\u0439 \u0434\u0440\u0443\u0433 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u043a\u0430\u0440\u0430\u043d\u0434\u0430\u0448 \u0438 \u043b\u0438\u0441\u0442\u043e\u043a \u0431\u0443\u043c\u0430\u0433\u0438. \u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438 \u043c\u043e\u043a\u0430\u043f\u044b \u0438 \u0432\u043f\u0435\u0440\u0435\u0434, \u043a \u043a\u043e\u0434\u0443. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438\u0437 Xamarin Component Store \u0432 \u043f\u0440\u043e\u0435\u043a\u0442: Azure Mobile Services \u0438 Google Play Services (ICS \u2014 \u044f \u043d\u0435 \u0445\u043e\u0447\u0443 \u0441\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0430\u0440\u044b\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 Android).<br \/>  \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438 <i>\u0411\u0410\u041c! <\/i> \u2014 \u043f\u0435\u0440\u0432\u044b\u0435 \u0433\u0440\u0430\u0431\u043b\u0438.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0440\u0430\u0431\u0435\u043b\u044c\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 Xamarin \u043f\u043e\u0434 Android, \u043f\u043e \u043c\u043d\u0435\u043d\u0438\u044e <a href=\"http:\/\/habrahabr.ru\/users\/xlab\/\" class=\"user_link\">Xlab<\/a>. \u042f \u0441 \u043d\u0438\u043c \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d \ud83d\ude42<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/comment_images\/93d\/1ce\/3d3\/93d1ce3d386481e561e3b4033acf405d.gif\" alt=\"image\"\/>  <\/div>\n<\/div>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Xamarin \u0441\u0442\u0440\u043e\u0438\u0442 \u0444\u0430\u0439\u043b\u044b \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b <code>Resource.Designer.fs<\/code> \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438\/\u0438\u043b\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 Id.end \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u0449\u0438\u0439 \u043a\u043e\u0434  <\/p>\n<pre><code>\/\/ aapt resource value: 0x7f070013 static member end = 2131165203 <\/code><\/pre>\n<p>  \u0430 \u0441\u043b\u043e\u0432\u043e end \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0434\u043b\u044f F# \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 <code>\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e &quot;end&quot; \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0447\u043b\u0435\u043d\u0430 (FS0010)<\/code>. \u0418 \u044d\u0442\u043e \u0442\u0430 \u0438\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0430\u043c \u043d\u0435 \u0440\u0435\u0448\u0438\u0448\u044c, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e.<br \/>  \u042f \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0430 \u0444\u043e\u0440\u0443\u043c Xamarin \u0438 \u0432 \u0442\u0432\u0438\u0442\u0442\u0435\u0440 Miguel de Icaza \u2014 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442\u0432\u0435\u0442! \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0442 \u0447\u0442\u043e \u0432 \u0410\u043b\u044c\u0444\u0430-\u0432\u0435\u0440\u0441\u0438\u0438 \u044d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0443\u0436\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430. <br \/>  \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e Xamarin Studio \u043d\u0430 \u0430\u043b\u044c\u0444\u0430-\u043a\u0430\u043d\u0430\u043b \u0438 <i>\u0411\u0410\u041c! <\/i> \u2014 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u2026  <\/p>\n<blockquote><p>Looks like the Windows Alpha channel is not quite there yet&#8230;<\/p><\/blockquote>\n<p>  \u041d\u0443 \u0447\u0442\u043e \u0436\u0435, \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u00ab\u0442\u0430\u043c\u00bb, \u0432\u0440\u0435\u043c\u044f \u0435\u0449\u0435 \u0435\u0441\u0442\u044c. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u043a\u0430 Google Play Services \u0432 \u043f\u043e\u043a\u043e\u0435.<\/p>\n<h5>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432 \u043e F#<\/h5>\n<p>  \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u043f\u0440\u043e\u0435\u043a\u0442 \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u043b \u043e F#, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u044d\u0442\u043e \u00ab\u043a\u0440\u0443\u0442\u043e\u00bb, \u00ab\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u00bb, \u0438 \u00ab\u043a\u0440\u0430\u0439\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u00bb. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0432\u0437\u044f\u0442\u044c \u0435\u0433\u043e \u0441 \u043d\u0430\u0441\u043a\u043e\u043a\u0443 \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0441 \u0442\u0440\u0435\u0441\u043a\u043e\u043c \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c. \u041f\u043e\u0447\u0442\u0438 \u043f\u044f\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u043c\u0438\u043d\u0443\u0442 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u043f\u043e\u043d\u044f\u0442\u044c \u043f\u043e\u0447\u0435\u043c\u0443 <code>let values = [&quot;item1&quot;; &quot;item2&quot;; &quot;item3&quot;]<\/code> \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 ArrayAdapter&#8217;\u0430 <code>listView.Adapter &lt;- new ArrayAdapter&lt;String&gt;(this, Android.Resource.Layout.SimpleListItem1, Android.Resource.Id.Text1, values) <\/code><br \/>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u044d\u044d\u044d, \u043f\u0440\u043e\u0441\u0442\u044b\u043c <code>let values = [|&quot;item1&quot;; &quot;item2&quot;; &quot;item3&quot;|]<\/code> \u2014 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 string[], \u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d list (IEnumerable \u043a\u0430\u043a \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e)<br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0432\u0430 \u0434\u043d\u044f \u044f \u043f\u043e\u0441\u0432\u044f\u0442\u0438\u043b \u0432\u0441\u0435\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f F#. \u0412 \u044d\u0442\u043e \u043c\u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u0443\u0440\u0441 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u043d\u0430 <a href=\"http:\/\/www.tryfsharp.org\/Learn\/\">www.tryfsharp.org\/Learn\/<\/a> <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/409\/e22\/9ac\/409e229ac7bc0a6a235277641477f6e5.png\"\/><br \/>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0430\u0442\u044c F# \u2014 \u0432\u0430\u043c \u0442\u0443\u0434\u0430, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e <\/p>\n<p>  \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0433 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"http:\/\/fsharpforfunandprofit.com\/\">F# For Fun And Profit<\/a>  <\/p>\n<hr\/>\n<p>  <\/p>\n<h4>\u0421\u0440\u0430\u0437\u0443 \u0432 \u0411\u043e\u0439, \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043d\u043e\u043c\u0435\u0440 \u0434\u0432\u0430<\/h4>\n<p>  \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d \u2014 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  height=\"400\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/3ef\/57d\/ade\/3ef57dade86ad45ffe261e851ea8de9d.png\"\/><\/div>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e hash <br \/>  \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f MD5 \u0434\u043b\u044f F#  <\/p>\n<pre><code>   let MD5Hash (input : string) =       use md5 = System.Security.Cryptography.MD5.Create()       input       |&gt; System.Text.Encoding.ASCII.GetBytes       |&gt; md5.ComputeHash       |&gt; Seq.map (fun c -&gt; c.ToString(&quot;X2&quot;))       |&gt; Seq.reduce (+)<\/code><\/pre>\n<p>  \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code>|&gt;<\/code> \u044d\u0442\u043e pipeline \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440, \u043e\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043b\u044c\u0448\u0435.<br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u043c\u0435\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c: \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0431\u0430\u0439\u0442\u044b \u0438\u0437 GetBytes -&gt; \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0445\u0435\u0448 -&gt; \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u0432 HEX \u0444\u043e\u0440\u043c\u0430\u0442 -&gt; \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u043c \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 (<i>\u043c\u0435\u0442\u043e\u0434 reduce \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e + \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u0438\u0442\u043e\u0433<\/i>) -&gt; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u0442\u043e\u0442 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434 \u043d\u0430 C#<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>using System;   public string CreateMD5Hash (string input) {    MD5 md5 = System.Security.Cryptography.MD5.Create();    byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes (input);    byte[] hashBytes  = md5.ComputeHash (inputBytes);      StringBuilder sb = new StringBuilder();    for (int i = 0; i &lt; hashBytes.Length; i++)    {        sb.Append (hashBytes[i].ToString (&quot;X2&quot;));    }    return sb.ToString(); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0434\u043d\u0430 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0437\u0430\u0432\u0438\u0441 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f: \u044d\u0442\u043e \u0442\u043e \u0447\u0442\u043e \u043e\u0434\u043d\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f AzureServiceWorker (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 CLR \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441)<\/p>\n<p>  \u0418 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043d\u0435 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438 \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f F# <b>\u0432\u0430\u0436\u0435\u043d \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432<\/b>! \u0418 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Xamarin Studio \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.  <\/p>\n<pre><code class=\"xml\">  &lt;ItemGroup&gt;     &lt;Compile Include=&quot;Resources\\Resource.designer.fs&quot; \/&gt;     &lt;Compile Include=&quot;Properties\\AssemblyInfo.fs&quot; \/&gt;     &lt;Compile Include=&quot;Helpers\\Helpers.fs&quot; \/&gt;     &lt;Compile Include=&quot;Services\\User.fs&quot; \/&gt;     &lt;Compile Include=&quot;Services\\AzureServiceWorker.fs&quot; \/&gt;    \t     &lt;Compile Include=&quot;IAmHereActivity.fs&quot; \/&gt;     &lt;Compile Include=&quot;WhereAreYouActivity.fs&quot; \/&gt;     &lt;Compile Include=&quot;SignInActivity.fs&quot; \/&gt;       &lt;\/ItemGroup&gt; <\/code><\/pre>\n<h5>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432<\/h5>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438: \u044d\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 Xamarin \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c Xamarin.Mobile<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u0438. \u0423 F# \u0441\u0432\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u0438 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u043d\u0430 TPL, \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 Task&#8217;\u0430\u043c\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e F# \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u043c\u0438 \u043f\u0440\u043e\u0441\u0442\u043e Task. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e:  <\/p>\n<pre><code> module Async =     open System.Threading     open System.Threading.Tasks      let inline AwaitPlainTask (task: Task) =          \/\/ rethrow exception from preceding task if it fauled         let continuation (t : Task) : unit =             match t.IsFaulted with             | true -&gt; raise t.Exception             | arg -&gt; ()         task.ContinueWith continuation |&gt; Async.AwaitTask <\/code><\/pre>\n<p>  \u0415\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435 \u0432\u044b\u0437\u0432\u0430\u0432 <code>Async.AwaitIAsyncResult &gt;&gt; Async.Ignore<\/code> \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0430\u0441\u043a\u0438<\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u043a\u0430\u043a \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0438 \u0434\u0435\u043b\u0430\u044e \u043d\u0430\u0434 \u043d\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438  <\/p>\n<pre><code>     let ExtractUserInfo (x : Contact) =          let first = x.Phones |&gt; Seq.tryPick(fun x -&gt; if x.Type = PhoneType.Mobile then Some(x) else None)         match first with         | Some(first) -&gt;              let phone = first.Number |&gt; StripChars [' ';'-';'(';')']                          UserInfo.CreateUserInfo((MD5Hash phone), phone, x.DisplayName)                                            | None -&gt;  UserInfo.CreateUserInfo(&quot;no mobile phone&quot;, &quot;no mobile phone&quot;, &quot;no mobile phone&quot;)      \/\/ function for async list filling      let FillContactsAsync = async {                      let book = new AddressBook (this)                    let! result = book.RequestPermission() |&gt; Async.AwaitTask          if result then             _contacts &lt;- book.ToList()                  |&gt; Seq.filter (fun (x: Contact) -&gt; not (Seq.isEmpty x.Phones))                  |&gt; Seq.map ExtractUserInfo                  |&gt; Seq.sortBy(fun x -&gt; x.DisplayName)                 |&gt; Seq.toList               let finalContacts = _contacts |&gt; Seq.map (fun x -&gt; x.DisplayName.ToUpperInvariant()) |&gt; Seq.toArray             this.ListAdapter &lt;- new ArrayAdapter(this, Resource_Layout.row_contact, finalContacts)                            else             System.Diagnostics.Debug.WriteLine(&quot;Permission denied by user or manifest&quot;)             this.ListAdapter &lt;- new ArrayAdapter(this, Resource_Layout.row_contact, Array.empty)                                               }   <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438  <\/p>\n<ol>\n<li><code>book.ToList()<\/code> \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 List<\/li>\n<li><code>|&gt; Seq.filter (fun (x: Contact) -&gt; not (Seq.isEmpty x.Phones)) <\/code> \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0431\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432<\/li>\n<li><code>|&gt; Seq.map ExtractUserInfo <\/code> \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 Contracts \u0432 UserInfo, \u0434\u0430\u043b\u0435\u0435 \u0443 \u043d\u0430\u0441 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 UserInfo<\/li>\n<li><code>|&gt; Seq.sortBy(fun x -&gt; x.DisplayName)<\/code> \u0421\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c<\/li>\n<li><code>|&gt; Seq.toList <\/code> \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 List<\/li>\n<li><code>_contacts &lt;-<\/code> \u043a\u043b\u0430\u0434\u0435\u043c \u0432\u0441\u0435 \u0432 mutable \u043f\u043e\u043b\u0435<\/li>\n<li><code>_contacts |&gt; Seq.map (fun x -&gt; x.DisplayName.ToUpperInvariant())&lt;-<\/code>\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b UserInfo \u0432 string, \u0434\u0430\u043b\u0435\u0435 \u0443 \u043d\u0430\u0441 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432-\u0441\u0442\u0440\u043e\u043a \u2014 \u0438\u043c\u0435\u043d\u0430 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438<\/li>\n<li><code>|&gt; Seq.toArray&lt;-<\/code>\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c List \u0432 Array \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u043f\u0440\u0438\u043d\u044f\u043b ArrayAdapter<\/li>\n<\/ol>\n<p>  \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043d\u0435\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u2014 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 List. \u041d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  height=\"400\" src=\"\/\/habrastorage.org\/files\/51d\/2f6\/242\/51d2f624208e4a9da32a73f0b2a9246d.png\"\/><\/div>\n<h4>Azure Mobile Servcies<\/h4>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u044d\u043a-\u044d\u043d\u0434\u0430 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Azure Mobile Services. \u041f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0441\u0442\u0430\u043b \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 NotificationHub, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 Push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u0432\u0441\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Azure \u044f \u0442\u043e\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443, \u0442.\u043a. \u0443 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439\u0448\u0438\u0435 \u043c\u0430\u043d\u0443\u0430\u043b\u044b.<\/p>\n<p>  \u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u044f \u0441\u043e\u0437\u0434\u0430\u044e \u043f\u0430\u0440\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442, \u043e\u043d\u0438 \u043f\u043e\u043c\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0433\u043e\u043c <code>&lt;Literal&gt;<\/code>  <\/p>\n<pre><code> module WruConstants =     [&lt;Literal&gt;]     let TotallyNotAzureServer = &quot;https:\/\/YOUR.azure-mobile.net\/&quot;;     [&lt;Literal&gt;]     let TotallyNotAzureKey = &quot;YOUR&quot; <\/code><\/pre>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0434\u0438\u043d <s>\u043c\u0435\u0442\u043e\u0434<\/s> \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c  <\/p>\n<pre><code>         member this.RegisterMe phone name regId = async {                             try                     let table = this.MobileService.GetTable&lt;User&gt;()                       let usr =                          { Id = &quot;&quot;                           PhoneHash = MD5Hash phone                           Nickname = name                           RegistrationId = regId }                                                                                                      do! table.InsertAsync usr |&gt; Async.AwaitPlainTask                                          return (usr.Id, usr.PhoneHash, usr.Nickname)                 with | e -&gt; System.Diagnostics.Trace.WriteLine(e.ToString)                                   return (String.Empty,String.Empty,String.Empty) } <\/code><\/pre>\n<p>  <\/p>\n<ol>\n<li><code> member this.RegisterMe phone name regId = async {   <\/code> \u2014 \u0442\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0447\u043b\u0435\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 (\u0431\u0443\u0434\u0435\u0442 \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434) \u0441 \u0442\u0440\u0435\u043c\u044f \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0439 \u043a\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u043c \u00abcomputation expression\u00bb \u0438\u043b\u0438 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u043c workflow. \u0412\u043d\u0443\u0442\u0440\u0438 \u0441\u043a\u043e\u0431\u043e\u043a { } \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c! (\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f bang), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 do! (do-bang) \u0438\u043b\u0438 let! (let bang)<\/li>\n<li>\u042f \u0441\u043e\u0437\u0434\u0430\u044e \u043e\u0431\u044a\u0435\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 User. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e F# \u0441\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0431\u043e\u0440\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439<br \/> \n<pre><code>    let usr = { Id = &quot;&quot;                     PhoneHash = MD5Hash phone                     Nickname = name                     RegistrationId = regId }    <\/code><\/pre>\n<\/li>\n<li><code>do! table.InsertAsync usr |&gt; Async.AwaitPlainTask<\/code> \u0434\u0435\u043b\u0430\u0435\u043c do-bang, \u0447\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e <code>await<\/code> \u0438\u0437 C#. \u0422.\u0435. \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0430 \u0432\u0435\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u0432 continuation \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/li>\n<li><code>return (usr.Id, usr.PhoneHash, usr.Nickname)<\/code> \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043a\u043e\u0440\u0442\u0435\u0436 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u0439 Tuple&lt;string,string,string&gt; \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c \u0434\u0430\u043b\u0435\u0435.<\/li>\n<li>\u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f <code>try ... with | e -&gt;<\/code> \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u0430 <code>try..catch<\/code> \u0438\u0437 C#<\/li>\n<\/ol>\n<div style=\"text-align:center;\"><img decoding=\"async\"  height=\"400\" src=\"\/\/habrastorage.org\/files\/c21\/7d3\/9bd\/c217d39bd1cc4f5da56402fcff59f884.png\"\/><\/div>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u043a\u043e\u0440\u0442\u0435\u0436\u0430. \u0412 F# \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>fst<\/code> \u0438 <code>snd<\/code> \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0430\u0440\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041d\u043e \u043e\u043d\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u0442\u0435\u0436\u0435\u0439 \u0438\u0437 2\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:  <\/p>\n<pre><code>        let id (c,_,_) = c         let phonehash (_,c,_) = c         let nickname (_,_,c) = c <\/code><\/pre>\n<p>  \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435: <code>id tuple<\/code> \u0432\u0435\u0440\u043d\u0435\u0442 Id \u0438 \u0442.\u043f.<\/p>\n<p>  \u0412\u0441\u0435\u0433\u043e \u0443 \u043c\u0435\u043d\u044f 5 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 Azure, \u0434\u0432\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f Push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439. \u0427\u0442\u043e\u0431\u044b \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c Azure Custom Api \u0444\u0443\u043d\u043a\u0446\u0438\u044e <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043e\u0442 \u043e\u043d\u0430 \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">exports.post = function(request, response) {     \/\/ Use &quot;request.service&quot; to access features of your mobile service, e.g.:     \/\/   var tables = request.service.tables;     \/\/   var push = request.service.push;      \/\/response.send(statusCodes.OK, { message : 'Hello World!' });     console.log('Incoming call with requst: ', request.body.RequestId);           var usersTable = request.service.tables.getTable('User');     usersTable.where( { id : request.body.TargetId } )         .read(             { success: function(results)                                  {                                         if (results.length &gt; 0)                     {                         var user = results[0]                         console.log('Send to results: ', user.Nickname, user.RegistrationId);                                                   request.service.push.gcm.send(user.RegistrationId,                              {                                 RequesterId: request.body.RequesterId,                                 RequesterNickname: request.body.RequesterName,                                 TargetId: user.id,                                 TargetNickname: user.Nickname                                                                                             },                                                                            {                                 success: function(gcm_response) {                                     console.log('Push notification sent: ', gcm_response);                                     response.send(statusCodes.OK, { RequestedNickname : user.Nickname });                                 },                                  error: function(gcm_error) {                                     console.log('Error sending push notification: ', gcm_error);                                     response.send(statusCodes.INTERNAL_SERVER_ERROR, { RequestedNickname : user.Nickname });                                 }                             });                                                                    }                     else                     {                          response.send(statusCodes.NO_CONTENT, { RequestedNickname : &quot;&quot; });                     }                                     },               error: function(error)                {                    console.log('Error read table: ', error);                    response.send(statusCodes.INTERNAL_SERVER_ERROR, { RequestedNickname : &quot;&quot; });               }                                                             }); }; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0443 \u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 Push \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e  <\/p>\n<pre><code>         \/\/ Perform Push operation         member this.PushAsync targetId myId myNickname = async {             try                 let (request : PushRequest) =                      {                         TargetId = targetId                         RequesterId = myId                         RequesterName = myNickname                     }                 let! result = this.MobileService.InvokeApiAsync&lt;PushRequest, PushResponce&gt;(&quot;pushhim&quot;, request) |&gt; Async.AwaitTask                 return result.RequestedNickname             with | e -&gt; return e.ToString() } <\/code><\/pre>\n<p>  \u043e\u0442\u043c\u0435\u0447\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>let-bang<\/code> \u0430 \u043d\u0435 <code>do!<\/code><\/p>\n<h4>\u041f\u0443\u0448 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438<\/h4>\n<div style=\"text-align:center;\"><img decoding=\"async\"  height=\"400\" src=\"\/\/habrastorage.org\/files\/5d1\/2d2\/3c1\/5d12d23c17cf4048864c53048454bd9d.png\"\/><\/div>\n<p>  \u0414\u043b\u044f \u043f\u0443\u0448\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Google Play Services. \u041e\u0434\u043d\u0430\u043a\u043e \u043e\u043d\u0438 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u0441 F# \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0430\u0437\u0438\u0442\u044c \u043f\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c \u0438 \u043d\u0430\u0439\u0442\u0438 \u0442\u0443 \u0441\u0431\u043e\u0440\u043a\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u043e\u043c\u0430\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0431\u043e\u0440\u043a\u0430: <i>Xamarin.Android.Support.v7.AppCompat<\/i><br \/>  \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0435\u0435 \u0438 \u0432\u0441\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, Google Play Services \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 push notification \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043d\u044b\u043b\u0430\u044f \u0448\u0442\u0443\u043a\u0430. \u0422\u0435\u043b\u0435\u0444\u043e\u043d \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 GCM, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 ID, \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u044d\u0442\u043e\u0442 ID \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043f\u043e \u043d\u0435\u043c\u0443 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c Push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f (\u0441\u043c. \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e pushhim). \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442 \u043d\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f BroadcastReciever \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 <a href=\"http:\/\/developer.android.com\/google\/gcm\/client.html\">developer.android.com<\/a>. \u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0430 F# \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438 \u0442\u0443\u0442 \u043c\u043d\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u043c\u043e\u0433 Xamarin Component Store. \u0412\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Google Cloud Messaging Client \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 GCM \u0438 \u044d\u0442\u0438\u043c \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u0435\u043d. \u0412\u043e\u0442 \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f ID   <\/p>\n<pre><code> \/\/Check to see that GCM is supported and that the manifest has the correct information         GcmClient.CheckDevice(this)         GcmClient.CheckManifest(this)          \/\/ check google play         if CheckPlayServices() then             \/\/ Try to get registration id             let regId = GcmClient.GetRegistrationId this             if String.IsNullOrEmpty(regId) then                 \/\/ Call to Register the device for Push Notifications                 GcmClient.Register(this, WruConstants.GcmSender); <\/code><\/pre>\n<div style=\"text-align:center;\"><img decoding=\"async\"  height=\"400\" src=\"\/\/habrastorage.org\/files\/085\/ce2\/070\/085ce2070e4e4e718038177424d494d0.png\"\/><\/div>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0441\u043e\u0442\u043d\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u043e\u0442\u043a\u043d\u0443 \u0441\u044e\u0434\u0430 \u043a\u0430\u0440\u0442\u0443<\/p>\n<p>  \u0412\u043e\u0442 \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0438 \u0432\u0441\u0435.<br \/>  \u0417\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u043f\u043e\u0434\u0430\u043d\u0430, \u0431\u043b\u043e\u0433-\u043f\u043e\u0441\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d<br \/>  \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0430 \u0431\u0438\u0442\u0431\u0430\u043a\u0435\u0442\u0435 <a href=\"https:\/\/bitbucket.org\/xakpc\/whereareyou\">bitbucket.org\/xakpc\/whereareyou<\/a><br \/>  \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 \u0433\u0443\u0433\u043b\u043e\u043f\u043b\u0435\u0435, \u043c\u043e\u0433\u0443 \u0434\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c\u0441\u044f<br \/>  \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0442\u0443\u0442 \u043a\u043e\u0434 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0437\u0430 \u043b\u044e\u0431\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430 \u0432 \u0431\u043e\u043b\u0435\u0435 \u00ab\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e\u00bb \u0432\u0435\u0440\u0441\u0438\u044e.<\/p>\n<h4>\u0412\u0435\u0440\u0434\u0438\u043a\u0442<\/h4>\n<p>  \u0414\u0430, \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 F#. \u042d\u0442\u043e \u0431\u044b\u043b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0438 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u043f\u044b\u0442. <br \/>  \u041d\u0435\u0442, \u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434 Android \u043d\u0430 F#. \u041f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0443\u0432\u0438\u0436\u0443 \u044f\u0432\u043d\u044b\u0445 \u0443\u0434\u043e\u0431\u0441\u0442\u0432 \u0432 \u044d\u0442\u043e\u043c.      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/228783\/\"> http:\/\/habrahabr.ru\/post\/228783\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" align=\"right\" height=\"150\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/45f\/380\/50e\/45f38050ece3fa9b2e7e66028072ddf9.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442! <\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e Xamarin \u043e\u0431\u044a\u044f\u0432\u0438\u043b <a href=\"http:\/\/blog.xamarin.com\/contest-build-your-first-f-mobile-app\/\">\u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443<\/a> \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f F#.<br \/>  \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c Xamarin 3 \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 F#. \u042f \u0440\u0435\u0448\u0438\u043b \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f \u043e\u0442 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u044f \u0434\u0430\u0432\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u044e \u043d\u0430 F#, \u043d\u043e \u0448\u0430\u043d\u0441\u043e\u0432 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e. \u0414\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0430 \u043a\u0435\u043c-\u0442\u043e \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0433\u043e \u0432\u0437\u043b\u0435\u0442\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Yo. \u0412\u043e\u0442 \u0446\u0438\u0442\u0430\u0442\u0430:  <\/p>\n<blockquote><p>\u0418\u0434\u0435\u044f \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u0430, \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u00ab\u0442\u044b \u0433\u0434\u0435?\u00bb.<\/p>\n<p>  \u0421\u043c\u044b\u0441\u043b \u043f\u0440\u043e\u0441\u0442, \u0434\u0435\u0432\u0443\u0448\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432 \u043d\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0441\u0432\u043e\u0435\u0433\u043e \u043c\u043e\u043b\u043e\u0434\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0433\u043d\u043e\u043f\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u00ab\u0442\u044b \u0433\u0434\u0435?\u00bb #startup #idea  <\/p><\/blockquote>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u0438 \u043d\u0435\u0442?<\/p>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/b><br \/>  \u042f \u043f\u0438\u0441\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u043d\u0430\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-228783","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/228783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228783"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/228783\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}