You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ApiProxyGenerator: If the method takes no parameters, and defines PushExpireClientCache, then in the generated XXXApi class, in a static constructor, register a SignalR or Socket client tot he server to receive cache expiry notifications.
On the server side, we need to add a static AsyncEvent object on the appropriate entity type, which is used as the signal point. public static AsyncEvent PeopleDataChanged;
In the Api controller class, in a static constructor, add: PushExpireClientCache.For(nameof(All)).PushUpon(Person.PeopleDataChanged);
Internally that shall implement a mechanism to host the SignalR stuff. So that every time the event is raised, the remote client sockets receive a signal to expire their cache.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Cache Expiry Pushing
ApiProxyGenerator: If the method takes no parameters, and defines PushExpireClientCache, then in the generated XXXApi class, in a static constructor, register a SignalR or Socket client tot he server to receive cache expiry notifications.
On the server side, we need to add a static AsyncEvent object on the appropriate entity type, which is used as the signal point.
public static AsyncEvent PeopleDataChanged;
In the Api controller class, in a static constructor, add:
PushExpireClientCache.For(nameof(All)).PushUpon(Person.PeopleDataChanged);
Internally that shall implement a mechanism to host the SignalR stuff. So that every time the event is raised, the remote client sockets receive a signal to expire their cache.
The text was updated successfully, but these errors were encountered: