LiveConnectClient Missing Live SDK 5.3 WP8 Event Handlers

hi there :) il get the right to it.

Problem: when I try to run LiveConnectClient and then try to access the event: GetCompleted which, apparently, are in the LiveConnectClient, do not appear, and in all the examples that I examined, even those here use it. this is not the only class that this happens on it, also happens on the LiveAuthClient, and also there are no events, even a message on the network says it should be.

I tried reinstalling Vs2012 and sdk wp8 and live sdk from scratch but didn't solve it

for refrence i using this example to see if i can work:

    //event triggered when Skydrive sign in status is changed
    private void btnSignIn_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e)
    {
        //if the user is signed in
        if (e.Status == LiveConnectSessionStatus.Connected)
        {
            session = e.Session;

            client = new LiveConnectClient(e.Session);
            infoTextBlock.Text = "Accessing SkyDrive...";

            //get the folders in their skydrive

            client.GetCompleted +=
                new EventHandler<LiveOperationCompletedEventArgs>(btnSignin_GetCompleted);

            client.GetAsync("me/skydrive/files?filter=folders,albums");
        }

        //otherwise the user isn't signed in
        else
        {
            infoTextBlock.Text = "Not signed in.";
            client = null;
        }

    }

. , , :)

. , .

jens

+1
1

, , SDK. , async/wait. async, GetAsync await. , GetCompleted:

private async void btnSignIn_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e)
{
    //if the user is signed in
    if (e.Status == LiveConnectSessionStatus.Connected)
    {
        session = e.Session;

        client = new LiveConnectClient(e.Session);
        infoTextBlock.Text = "Accessing SkyDrive...";

        //get the folders in their skydrive
        var result = await client.GetAsync("me/skydrive/files?filter=folders,albums");

        // Do here what you would normally do in btnSignin_GetCompleted
    }

    //otherwise the user isn't signed in
    else
    {
        infoTextBlock.Text = "Not signed in.";
        client = null;
    }

}
+2

All Articles