Skip to content

Refactor EnsureAdminUser call to be synchronous#98

Open
huangxiangyao wants to merge 1 commit intomasterfrom
fix-seed-data
Open

Refactor EnsureAdminUser call to be synchronous#98
huangxiangyao wants to merge 1 commit intomasterfrom
fix-seed-data

Conversation

@huangxiangyao
Copy link
Copy Markdown
Member

Refactor EnsureAdminUser call to be synchronous

Changed the invocation of EnsureAdminUser from an asynchronous Task.Run to a synchronous call using GetAwaiter().GetResult(). This simplifies the code and ensures exceptions are properly caught in the surrounding try-catch block.

Changed the invocation of `EnsureAdminUser` from an asynchronous Task.Run to a synchronous call using GetAwaiter().GetResult(). This simplifies the code and ensures exceptions are properly caught in the surrounding try-catch block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant