Example #1
0
        public async Task<LiveConnectSession> LogonAsync()
        {
            var scopes = new ArrayList();
            scopes.AddAll(requestedScopes);

            var client = new LiveAuthClient(activity, CLIENTID);
            var loginAuthListener = new OneDriveAuthListener();
            client.Login(activity, scopes, loginAuthListener);
            return await loginAuthListener.Task;
        }