-
Notifications
You must be signed in to change notification settings - Fork 448
Functionality to track "first run" in cache objects #434
Functionality to track "first run" in cache objects #434
Conversation
jcansdale
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | ||
| set | ||
| { | ||
| InitializedAtString = value.ToString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these DateTimeOffset.ToString() calls need to specify the ISO 8016 format, eg. 2017-11-16T20:24:46+00:00. As it is, they're outputting strings in whatever local configuration the system has, which may not be parseable by Parse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally fixed in #457 carried over here
There is no reason for these values to be set to null, even though they are evaluated lazily.
|
@jcansdale Unity cannot serialize |
Ensure FirstRun is resolved before FirstRunAt is called
|
Seems straight forward and like a clean approach. |

As mentioned in #409
We want to start using the Invalidated events on cache objects to know when we need to re-populate data.
For some of those cache objects, we want to fire an implicit invalidated on the application's "First Run" as opposed to a domain reload. That way we know these objects need to be populated immediately.
This change adds:
ApplicationCacheManagedCacheBaseobjects are initializedManagedCacheBase.ValidateData()to verify if cache objects were initialized after application first run time, otherwise it will update and fire an "Invalidated" eventThis provides base functionality to:
Depends on: