コード例 #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
ファイル: Index.razor.cs プロジェクト: c4a8-lab/trueman
        protected override async Task OnInitializedAsync()
        {
            var state = await AuthState;

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