private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            var azure = new AzureMobileServices(_azureEndPoint, _applicationKey);

            azure.LoginAsync(AuthenticationProvider.Facebook, MyCallback);
        }
示例#2
0
 private void Login()
 {
     azure.LoginAsync(AuthenticationProvider.Facebook,
                      FacebookAccessToken,
                      LoginAsyncCallback);
 }
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.  The Parameter
 /// property is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     var azure = new AzureMobileServices(_azureEndPoint, _applicationKey);
     azure.LoginAsync(AuthenticationProvider.Facebook, MyCallback);
 }
 private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
 {
     var azure = new AzureMobileServices(_azureEndPoint, _applicationKey);
     azure.LoginAsync(AuthenticationProvider.Facebook, MyCallback);
 }
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var azure = new AzureMobileServices(_azureEndPoint, _applicationKey);

            azure.LoginAsync(AuthenticationProvider.Facebook, MyCallback);
        }
示例#6
0
    void Awake()
    {
        azure = new AzureMobileServices(AzureEndPoint, ApplicationKey);

        if (user == null)
        {
            DontDestroyOnLoad(gameObject);
            user = this;
        }
        else if (user != this)
        {
            Destroy(gameObject);
        }

        azure.LoginAsync(AuthenticationProvider.Facebook, FacebookAccessToken, LoginAsyncCallback);
    }