if running on WebAssembly reload the client application if the server application is restarted

This commit is contained in:
Shaun Walker
2021-03-31 15:39:01 -04:00
parent 09c040128a
commit bd48e1d8f1
3 changed files with 13 additions and 5 deletions

View File

@ -226,7 +226,7 @@ namespace Oqtane
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ISyncManager sync)
{
ServiceActivator.Configure(app.ApplicationServices);
@ -264,6 +264,9 @@ namespace Oqtane
endpoints.MapControllers();
endpoints.MapFallbackToPage("/_Host");
});
// create a sync event to identify server application startup
sync.AddSyncEvent(-1, "Application", -1);
}
}
}