Enhance SyncManager to raise events which can be handled on the server within hosted services. Raise create, update, delete events for all major entities. Include support for refresh and reload events to synchronize client state. Move client state cache invalidation to a hosted service to separate concerns and demonstrate events.
This commit is contained in:
12
Oqtane.Shared/Shared/SyncEventActions.cs
Normal file
12
Oqtane.Shared/Shared/SyncEventActions.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace Oqtane.Shared {
|
||||
public class SyncEventActions {
|
||||
// client actions for PageState management
|
||||
public const string Refresh = "Refresh";
|
||||
public const string Reload = "Reload";
|
||||
|
||||
// server actions for raising Events
|
||||
public const string Create = "Create";
|
||||
public const string Update = "Update";
|
||||
public const string Delete = "Delete";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user