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
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.
Hi,
can you share the generate-proxy command output log?
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
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