Activities of "AbpRaven"

Answer

Thank you so much! Please add this information into documentation

Answer

Does it mean that I have to have DTOs models not in Contracts layer?

no, just the namespace.

And result

Answer

Could anyony help me??

Answer

Does it mean that I have to have DTOs models not in Contracts layer?

Answer

yes.

Answer

without dtos

Answer

Create HttpApi.Client project for each service.

[DependsOn( 
    typeof(AbpHttpClientModule), //used to create client proxies 
    typeof(AbpVirtualFileSystemModule) //virtual file system 
)] 
public class XXXServiceHttpClientModule : AbpModule  
{  
    public override void ConfigureServices(ServiceConfigurationContext context)  
    {  
        // Prepare for static client proxy generation  
        context.Services.AddStaticHttpClientProxies(  
            typeof(XXXServiceHttpClientModule).Assembly,  
            XXXServiceRemoteServiceConsts.RemoteServiceName 
        );  
  
        // Include the generated app-generate-proxy.json in the virtual file system  
        Configure<AbpVirtualFileSystemOptions>(options =>  
        {  
            options.FileSets.AddEmbedded<XXXServiceHttpClientModule>();  
        });  
    }  
}  

then generate proxy file(Dtos, services etc...)

For example: abp generate-proxy -t csharp -u xxx -m identity (XXXServiceRemoteServiceConsts.RemoteServiceName's value)

Other services can then reference this project for API calls

it does not help. I have the same result

Answer

I see it but in which solution?? I have 2 solutions: auth service (client) and Identity (server). In which one I have to add HttpApi.Client

Auth Solution (has just 1 project):

  • Service (here I added AbpHttpClient and EmbeddedResource)

Identoty Solution (has 2 projects):

  • Service
  • Contracts

So as far as I understood I have to add HttpApi.Client project into Auth Solution. Am I right?

Answer

It shoud be on the client side (in my case in the auth service)?

Answer

I do not have web project. I have only Service and Service.Contract on server side. and only Service on the client side (auth service)

Showing 1 to 10 of 30 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13