public static void facebookOAuthConnectPopupItems(this Sprite that, facebookOAuthConnectPopupItemsCallback yield)
        {
            if (facebookOAuthConnectPopupItems_cache != null)
            {


                facebookOAuthConnectPopupItems_cache(yield);
                return;
            }

            facebookOAuthConnectPopupCallback c =
                 (Client xclient, string access_token, string facebookuserid) =>
                 {

                     Action callback = delegate
                     {
                         Console.WriteLine("at callback");

                         yield(xclient, access_token, facebookuserid, xclient.payVault.items);


                         // oh and the next time you dod that, lets cache it
                         // for how long?
                         Console.WriteLine("set facebookOAuthConnectPopupItems_cache");

                         facebookOAuthConnectPopupItems_cache =
                             future_yield =>
                             {
                                 Console.WriteLine("at facebookOAuthConnectPopupItems_cache");

                                 Action future_callback = delegate
                                 {
                                     Console.WriteLine("at future_callback");

                                     yield(xclient, access_token, facebookuserid, xclient.payVault.items);
                                 };

                                 xclient.payVault.refresh(callback: future_callback.ToFunction());

                             };
                     };

                     xclient.payVault.refresh(callback: callback.ToFunction());
                 };

            that.facebookOAuthConnectPopup(c);
        }
Beispiel #2
0
        public static void facebookOAuthConnectPopupItems(this Sprite that, facebookOAuthConnectPopupItemsCallback yield)
        {
            if (facebookOAuthConnectPopupItems_cache != null)
            {
                facebookOAuthConnectPopupItems_cache(yield);
                return;
            }

            facebookOAuthConnectPopupCallback c =
                (Client xclient, string access_token, string facebookuserid) =>
            {
                Action callback = delegate
                {
                    Console.WriteLine("at callback");

                    yield(xclient, access_token, facebookuserid, xclient.payVault.items);


                    // oh and the next time you dod that, lets cache it
                    // for how long?
                    Console.WriteLine("set facebookOAuthConnectPopupItems_cache");

                    facebookOAuthConnectPopupItems_cache =
                        future_yield =>
                    {
                        Console.WriteLine("at facebookOAuthConnectPopupItems_cache");

                        Action future_callback = delegate
                        {
                            Console.WriteLine("at future_callback");

                            yield(xclient, access_token, facebookuserid, xclient.payVault.items);
                        };

                        xclient.payVault.refresh(callback: future_callback.ToFunction());
                    };
                };

                xclient.payVault.refresh(callback: callback.ToFunction());
            };

            that.facebookOAuthConnectPopup(c);
        }