Activities of "liangshiwei"

Answer

And I want to split it for a sevrel layers

if you want , you can add them manually.

But the current layering is simpler

HI,

here is the DateTimeModelBinder to convert string to datetime.

https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinder.cs#L35

You can see the supported time format in swagger

can you share the server log?

Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration or set a default configuration

这不是问题,你可以忽略。

证书问题你可以看看这里的解决方案,目的是让系统信任证书 https://www.cnblogs.com/zinan/p/15853225.html

Hi,

you can run the Maui in release mode and debug it.

Answer

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

BTW, please make the repo private

The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

你的HTTPS证书有问题

如果你使用的是dotnet提供的开发证书,你可以尝试

dotnet dev-certs https --clean dotnet dev-certs https --trust

Hi,

i can run the projects without any problem.

you can try clear Redis and run projects again.

You can use the RestService provided by ABP.

it will add headers(tenantId, access_token, etc) automaticly

https://abp.io/docs/latest/framework/ui/angular/http-requests#restservice

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