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:
@ -9,12 +9,12 @@ namespace Oqtane.Models
|
||||
public List<SyncEvent> SyncEvents { get; set; }
|
||||
}
|
||||
|
||||
public class SyncEvent
|
||||
public class SyncEvent : EventArgs
|
||||
{
|
||||
public int TenantId { get; set; }
|
||||
public string EntityName { get; set; }
|
||||
public int EntityId { get; set; }
|
||||
public bool Reload { get; set; }
|
||||
public string Action { get; set; }
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user