Esempio n. 1
0
        async Task SetupAsync()
        {
            // try to retrieve last signed in user
            var userDto = await App.DataManager.GetLastSignedInUserAsync()
                          .ConfigureAwait(false);

            if (userDto == null)
            {
#if MOCK
                userDto = MockHelper.CreateMockUserDTO();
#endif
            }

            if (userDto != null)
            {
                await App.DataManager.SetSignedInUserAsync(userDto)
                .ConfigureAwait(false);
            }

            RunOnUiThread(ShowActivity);
        }