private void ProcessSignIn(TSignInMessage signInMessage) { RoutingContext = authService.LoadContext(signInMessage); Send(GetAuthSuccessMessage(signInMessage)); RoutingContext.OnMessageAvailable += RouterOnMessageAvailable; RoutingContext.Start(); }
protected virtual async Task ProcessSignIn(TSignInMessage signInMessage) { if (IsAuthenticated) { return; } RoutingContext = await authService.LoadContext(signInMessage, out var responseMessage).ConfigureAwait(false); SendMessage(responseMessage); RoutingContext.OnMessageAvailable += RouterOnMessageAvailable; RoutingContext.Start(); }