|
|
|
@ -2,17 +2,10 @@ |
|
|
|
@using Volo.Abp.Identity |
|
|
|
@inject IProfileAppService ProfileAppService |
|
|
|
|
|
|
|
<h1>Hello, world!</h1> |
|
|
|
|
|
|
|
<div class="alert alert-warning" role="alert"> |
|
|
|
Before authentication will function correctly, you must configure your provider details in <code>Program.cs</code> |
|
|
|
</div> |
|
|
|
|
|
|
|
Welcome to your new app. |
|
|
|
|
|
|
|
<h2>Remote Service Test</h2> |
|
|
|
<h1>Remote Service Test</h1> |
|
|
|
|
|
|
|
<h4>Current user name: @_userName</h4> |
|
|
|
|
|
|
|
<button class="btn btn-primary" @onclick="GetUserNameAsync">Click me (after login)</button> |
|
|
|
|
|
|
|
@code |
|
|
|
@ -21,6 +14,8 @@ Welcome to your new app. |
|
|
|
|
|
|
|
private async Task GetUserNameAsync() |
|
|
|
{ |
|
|
|
// It calls the remote service via ABP Dynamic C# Proxies! |
|
|
|
|
|
|
|
_userName = (await ProfileAppService.GetAsync()).UserName; |
|
|
|
} |
|
|
|
} |