Skip to content

Commit

Permalink
Fix use-cases diagrams layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ligowsky committed May 31, 2024
1 parent 46e93f2 commit 5c93426
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/src/04.use-cases/01.static-ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@ participant page as SignIn Page
box rgba(101, 63, 232, 0.5) Blazor.Auth
participant userService as IUserService (Server)
participant authService as IAuthenticationService (Server)
end
participant authService as IAuthenticationService (Server)
user ->>+ page: Submit Sign-In Form
page ->>+ userService: SignInAsync(signInPayload)
note over user,userService: Call IUserService's `SignInAsync` method when handling sign-in form submission.
userService ->>+ authService: SignInAsync(signInPayload)
rect background
authService ->> authService: Your server-side sign-in logic
end
authService -->>- userService: AuthenticationResult
Expand All @@ -49,19 +46,16 @@ participant page as SignUp Page
box rgba(101, 63, 232, 0.5) Blazor.Auth
participant userService as IUserService (Server)
participant authService as IAuthenticationService (Server)
end
participant authService as IAuthenticationService (Server)
user ->>+ page: Submit Sign-Up Form
page ->>+ userService: SignUpAsync(signUpPayload)
note over user,userService: Call IUserService's `SignUpAsync` method when handling sign-up form submission.
userService ->>+ authService: SignUpAsync(signUpPayload)
rect background
authService ->> authService: Your server-side sign-up logic
end
authService -->>- userService: AuthenticationResult
Expand Down
11 changes: 11 additions & 0 deletions docs/src/04.use-cases/02.interactive-webassembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ sequenceDiagram
actor user as User
participant page as SignIn Page
box rgba(101, 63, 232, 0.5) Blazor.Auth
participant userServiceClient as IUserService (Client)
participant userServiceServer as IUserService (Server)
end
participant authService as IAuthenticationService (Server)
user ->>+ page: Submit Sign-In Form
Expand Down Expand Up @@ -41,8 +45,12 @@ sequenceDiagram
actor user as User
participant page as SignUp Page
box rgba(101, 63, 232, 0.5) Blazor.Auth
participant userServiceClient as IUserService (Client)
participant userServiceServer as IUserService (Server)
end
participant authService as IAuthenticationService (Server)
user ->>+ page: Submit Sign-Up Form
Expand Down Expand Up @@ -71,8 +79,11 @@ sequenceDiagram
actor user as User
participant page as Page
box rgba(101, 63, 232, 0.5) Blazor.Auth
participant userServiceClient as IUserService (Client)
participant userServiceServer as IUserService (Server)
end
user ->>+ page: Initiate Sign-Out
page ->>+ userServiceClient: SignOutAsync()
Expand Down

0 comments on commit 5c93426

Please sign in to comment.