Пример #1
0
        protected override async Task OnInitializedAsync()
        {
            var state = await AuthState;

            Message     = string.Empty;
            StatusClass = string.Empty;
            try
            {
                Response = await UserGraphService.SetTapAsync(state.User.Identity.Name);
            }
            catch (System.Exception ex)
            {
                StatusClass = "alert-danger";
                Message     = "An error occurred while setting the temporary access password for you.";
            }
            await base.OnInitializedAsync();
        }
Пример #2
0
        protected override async Task OnInitializedAsync()
        {
            var state = await AuthState;

            UserInfo = await UserGraphService.GetUserAsync(state.User.Identity.Name);
        }