When deploying projects in two environments in the same cluster, the project calls are confusing. It is recommended to customize CustomizeDaprCallerBase and change the custom Caller to inherit CustomizeDaprCallerBase
public abstract class CustomizeDaprCallerBase : DaprCallerBase
{
protected CustomizeDaprCallerBase(IServiceProvider serviceProvider) : base(serviceProvider)
{
var hostEnvironment = serviceProvider.GetRequiredService<IWebHostEnvironment>();
if (!hostEnvironment.IsDevelopment() || hostEnvironment.IsStaging())
AppId = AppId + "-" + hostEnvironment.EnvironmentName;
}
}
When deploying projects in two environments in the same cluster, the project calls are confusing. It is recommended to customize
CustomizeDaprCallerBase
and change the custom Caller to inheritCustomizeDaprCallerBase