Hi,
How do we accomplish this within one microsercie without having to make service to service api calls?
You have to add the EntityFrameworkCore
project reference and module dependencies then add db connection strings to appsettings.json. this way you can inject the Repository to get data.
Hi,
I think you are using the new microservice template; It is a simpler template without many layers.
It's kind of like a single layer application template, you can put all(service, entity, repository etc..) into one layer. see https://abp.io/docs/latest/tutorials/todo/single-layer?UI=BlazorServer&DB=EF
Hi,
Can you add the following code and re-deploy project and share the result.
public partial class Index
{
[Inject]
public IAbpAccessTokenProvider AbpAccessTokenProvider { get; set; }
[Inject]
public IRemoteServiceHttpClientAuthenticator ServiceHttpClientAuthenticator { get; set; }
public string Token { get; set; }
protected async override Task OnInitializedAsync()
{
Token = await AbpAccessTokenProvider.GetTokenAsync();
}
}
<h3>AccessTokenProvder Type is : @AbpAccessTokenProvider.GetType().FullName</h3>
<h3>ServiceHttpClientAuthenticator Type is @ServiceHttpClientAuthenticator.GetType().FullName</h3>
<h3>Current token @Token</h3>
Hi,
I think this is a new question, could you please create a new ticket? thanks.
Hi,
You can try change Interactiveserver
to InteractiveAuto
to temporarily solve this problem.
Or create a new same name project with BlazorServer
UI to replace your existing project and copy your code.
I will keep researching this problem.
shiwei.liang@volosoft.com
Hi,
Can you share an admin account/password with me?