HI,
we have to create projects manualy (for example Domain, Domain.Shared and so on)
you don't need to do this.
you can configure csharp proxy in the
Web
project[DependsOn( ...... typeof(XXXServiceContractsModule), //Service Contracts module typeof(AbpVirtualFileSystemModule) //virtual file system ..... )] public class XXXWebModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { // Prepare for static client proxy generation context.Services.AddStaticHttpClientProxies( typeof(XXXServiceContractsModule).Assembly, XXXServiceRemoteServiceConsts.RemoteServiceName // add XXXServiceRemoteServiceConsts class to Contracts project ); // Include the generated app-generate-proxy.json in the virtual file system Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<XXXWebModule>(); }); } }
Add
generate-proxy.json
config to csproj file<ItemGroup> <EmbeddedResource Include="**\*generate-proxy.json" /> <Content Remove="**\*generate-proxy.json" /> </ItemGroup>
Then you can use abp command to generate proxy
I did it in service B and then I ran Service A and tryed to use this command (abp generate-proxy -t csharp -u http://localhost:44331/) in serice B but I get this error System.IO.DirectoryNotFoundException: Could not find a part of the path 'path\Service B\ClientProxies\app-generate-proxy.json'.
Thank you so much!
And am I right that in current microservice template we have to create projects manualy (for example Domain, Domain.Shared and so on)? Or maybe ABP has some command vie CLI?
hi everyone. I have microservises template. and I am trying to implement commutication between servises vie Integration Services. Do you have same sample how to implement it? In documentation (https://abp.io/docs/latest/solution-templates/microservice/http-api-calls) i can see that on client side we have to use HttpClient. Does it mean we have to use this one (https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-8.0) or something from ABP?
Thank you in advance.
hi. I am trying to generate a new monolith project vie this command: abp new Estimation --ui no-ui -m none --theme basic -csf
but I got an error like this: The option you provided for UI Framework is invalid!
also I have tried to generate vie this command: abp new Estimation -u angular -m none --theme basic -csf
but I got the project with Blazor template
We solved the issue. Just remove these certificate and create a new ones.