Activities of "liangshiwei"

Yes, you can.

Hi,

This sounds like a DBA thing.

For the code side.

you can dynamically replace the connect string.

Server=localhost;Database=xxx-{year}.portx.cloud ;Trusted_Connection=TrueTrustServerCertificate=True

[Dependency(ReplaceServices = true)]
public class MyMultiTenantConnectionStringResolver: MultiTenantConnectionStringResolver
{
    protected ICurrentTenant CurrentTenant { get; } 
    
    public MyMultiTenantConnectionStringResolver(IOptionsMonitor<AbpDbConnectionOptions> options, ICurrentTenant currentTenant, IServiceProvider serviceProvider) : base(options, currentTenant, serviceProvider)
    {
        CurrentTenant = currentTenant;
    }

    public async override Task<string> ResolveAsync(string connectionStringName = null)
    {
        var connectionString = await base.ResolveAsync(connectionStringName);

        if (CurrentTenant.IsAvailable)
        {
            connectionString = connectionString.Replace("{year}", DateTime.Now.Year.ToString());
        }

        return connectionString;
    }

    public override string Resolve(string connectionStringName = null)
    {
        var connectionString = base.Resolve(connectionStringName);

        if (CurrentTenant.IsAvailable)
        {
            connectionString = connectionString.Replace("{year}", DateTime.Now.Year.ToString());
        }

        return connectionString;
    }
}

Hi,

Can you share the full error logs? thanks.

Hi,

Sorry, but the ABP framework does not support it

How to manage permission role wise in public site?

I didn't get it, can you explant in the detail?

User can configure permission at admin site, but how to use permission management module to provide permissions to user at public site pages or controllers?

You can use it directly, just like the admin side, all methods are available.

Hi,

You can try this:

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(AzureBlobProvider))]
public class MyAzureBlobProvider : AzureBlobProvider
{
    public MyAzureBlobProvider(IAzureBlobNameCalculator azureBlobNameCalculator, IBlobNormalizeNamingService blobNormalizeNamingService) : base(azureBlobNameCalculator, blobNormalizeNamingService)
    {
    }

    protected override BlobContainerClient GetBlobContainerClient(BlobProviderArgs args)
    {
        var configuration = args.Configuration.GetAzureConfiguration();
        var options = new BlobClientOptions
        {
            Retry =
            {
                MaxRetries = 3,
                NetworkTimeout = TimeSpan.FromMinutes(30)
            }
        };
        var blobServiceClient = new BlobServiceClient(configuration.ConnectionString,options);
        return blobServiceClient.GetBlobContainerClient(GetContainerName(args));
    }
}

Hi,

customer CSS files

You can try adding the following code to SELFSERVICE365.Web.csproj:

 <ItemGroup>
    <Content Include="Themes\**\*.js">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
    <Content Include="Themes\**\*.css">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
 </ItemGroup>

Widgets

I can't reproduce the problem.

Hi,

I'd like to check it remotely, can we make an appointment for tomorrow? please email me shiwei.liang@volosoft.com

Hi,

What happens if you click the login button, will it redirect to the auth server login page?

Hi,

Could you share a GIF image?

Showing 4071 to 4080 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on October 30, 2025, 06:33