Hi,
It's easy to do,
you can install Hangfire.InMemory
package and configure it.
https://github.com/HangfireIO/Hangfire.InMemory
Could not get HttpClientProxyConfig for Integration.AccountSegments.IAccountSegmentsAppService. Volo.Abp.AbpException: Could not get HttpClientProxyConfig for Integration.AccountSegments.IAccountSegmentsAppService. at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
You need to configure the HTTP propxy
https://abp.io/docs/latest/framework/api-development/static-csharp-clients#without-contracts-example
what is the error now?
Hi,
I think there is a problem with your solution structure.
could you please share a test project, I will check it out. shiwei.liang@volosoft.com
I can't reproduce it
@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Pages.Abp.MultiTenancy
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Localization
@model AbpSolution2.Web.Pages.Abp.MultiTenancy.MyTenantSwitchModalModel
@inject IHtmlLocalizer<AbpUiMultiTenancyResource> L
@{
Layout = null;
}
<abp-dynamic-form abp-model="@Model.Input" asp-page="/Abp/MultiTenancy/TenantSwitchModal">
<abp-modal>
<abp-modal-header title="@L["SwitchTenant"].Value"> test</abp-modal-header>
<abp-modal-body>
<abp-form-content />
</abp-modal-body>
@* TODO: A "Submit" would be better than "Save"! *@
<abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer>
</abp-modal>
</abp-dynamic-form>
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using Pages.Abp.MultiTenancy;
using Volo.Abp.AspNetCore.MultiTenancy;
using Volo.Abp.DependencyInjection;
using Volo.Abp.MultiTenancy;
namespace AbpSolution2.Web.Pages.Abp.MultiTenancy;
[Dependency(ReplaceServices = true)]
public class MyTenantSwitchModalModel : TenantSwitchModalModel
{
public MyTenantSwitchModalModel(ITenantStore tenantStore, ITenantNormalizer tenantNormalizer, IOptions<AbpAspNetCoreMultiTenancyOptions> options) : base(tenantStore, tenantNormalizer, options)
{
}
public override async Task OnGetAsync()
{
Input = new TenantInfoModel();
Input.Name = "test";
if (CurrentTenant.IsAvailable)
{
var tenant = await TenantStore.FindAsync(CurrentTenant.GetId());
Input.Name = tenant?.Name;
}
}
}
Put new TenantSwitchModal.cshtml
under the Pages/Abp/MultiTenancy
folder
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/Pages/Abp/MultiTenancy/TenantSwitchModal.cshtml.cs
Seems the problem was solved. I'm closing this. : )
Hi,
We will fix it https://github.com/abpframework/abp/issues/21479