Activities of "liangshiwei"

Answer

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

no, just the namespace.

Hi,

you can try this

...
var handler = new NSUrlSessionHandler
{
    UseCookies = false,
    TrustOverrideForUrl = (sender, url, trust) => true
};
...

and remove #if DEBUG

if it's work, then it's a certificate issue

Answer

Hi,

The CLI expects the DTOs namespace to start with or be consistent with the application service's namespace.

you can check your dto and service namespace

For example:

namespace MyService.Services

....

namespace MyService.Services.Dtos

Hi,

Seems like you are using the open-source template.

This feature is a port of the abp account pro module.

you can try removing the account module and installing the account pro module to use this feature.

Answer

Hi,

can you share the generate-proxy command output log?

Answer

it does not help. I have the same result

what result?

you can try reference Volo.Abp.EntityFrameworkCore package in the Application project

var entityChangeQueryable = (await _auditLogRepository.GetDbContextAsync()).Set<EntityChange>().AsQueryable();
var securityLogQueryable = (await _identitySecurityLogRepository.GetDbSetAsync()).AsQueryable();

sorry, i have no idea

https://github.com/abpframework/abp/pull/20673

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

Showing 501 to 510 of 5968 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11