hi, I tried you suggestion but without if.It still did not worked.
Below is Blazor Module ▼
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var env = context.GetEnvironment();
var app = context.GetApplicationBuilder();
// Configure the HTTP request pipeline.
if (env.IsDevelopment())
{
app.UseWebAssemblyDebugging();
}
else
{
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseRouting();
app.Use(async (context, next) =>
{
if (context.Request.Path.Value != null &&
context.Request.Path.Value.StartsWith("/appsettings", StringComparison.OrdinalIgnoreCase) &&
context.Request.Path.Value.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
{
// Set endpoint to null so the static files middleware will handle the request.
context.SetEndpoint(null);
}
await next(context);
});
app.UseStaticFilesForPatterns("appsettings*.json");
app.MapAbpStaticAssets();
app.UseAntiforgery();
app.UseConfiguredEndpoints(builder =>
{
builder.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(WebAppAdditionalAssembliesHelper.GetAssemblies<BillingBlazorClientModule>());
});
}
It did not solve the problem.
We solved the issue by updating ExtraProperties to {}. Do you remember why {{}} was written to the database? We are looking into it, and if any questions come up, we will ask.
Thank you for the fast response.
Yes, in the _repository, for different eventData.Id in ExtraProperties has different values - some are {}, some are {{}}, and some are null.
Yes , here is the event class
[EventName("Maintenance.Request.Closed")]
public class MaintenanceRequestClosedEto
{
public Guid Id { get; set; }
public DateTime ClosedDate { get; set; }
}
and methode that handles event
public async Task HandleEventAsync(MaintenanceRequestClosedEto eventData)
{
var entity = await _repository.FindAsync(eventData.Id);
entity.SetStatus(MaintenanceRequestStatus.Completed, eventData.ClosedDate);
await _repository.UpdateAsync(entity);
}