@@ -148,7 +148,7 @@ public void UpdateConfigData()
148148 public void CheckLogChangedEvent ( CacheUpdateEvent cacheUpdateEvent )
149149 {
150150 var managedCache = cacheContainer . GitLogCache ;
151- var raiseEvent = managedCache . ShouldRaiseCacheEvent ( cacheUpdateEvent ) ;
151+ var raiseEvent = managedCache . IsLastUpdatedTimeDifferent ( cacheUpdateEvent ) ;
152152
153153 Logger . Trace ( "Check GitLogCache CacheUpdateEvent Current:{0} Check:{1} Result:{2}" , managedCache . LastUpdatedAt ,
154154 cacheUpdateEvent . UpdatedTimeString ?? "[NULL]" , raiseEvent ) ;
@@ -164,7 +164,7 @@ public void CheckLogChangedEvent(CacheUpdateEvent cacheUpdateEvent)
164164 public void CheckStatusChangedEvent ( CacheUpdateEvent cacheUpdateEvent )
165165 {
166166 var managedCache = cacheContainer . GitStatusCache ;
167- var raiseEvent = managedCache . ShouldRaiseCacheEvent ( cacheUpdateEvent ) ;
167+ var raiseEvent = managedCache . IsLastUpdatedTimeDifferent ( cacheUpdateEvent ) ;
168168
169169 Logger . Trace ( "Check GitStatusCache CacheUpdateEvent Current:{0} Check:{1} Result:{2}" , managedCache . LastUpdatedAt ,
170170 cacheUpdateEvent . UpdatedTimeString ?? "[NULL]" , raiseEvent ) ;
@@ -195,7 +195,7 @@ public void CheckCurrentBranchAndRemoteChangedEvent(CacheUpdateEvent cacheUpdate
195195 private void CheckRepositoryInfoCacheEvent ( CacheUpdateEvent cacheUpdateEvent )
196196 {
197197 var managedCache = cacheContainer . RepositoryInfoCache ;
198- var raiseEvent = managedCache . ShouldRaiseCacheEvent ( cacheUpdateEvent ) ;
198+ var raiseEvent = managedCache . IsLastUpdatedTimeDifferent ( cacheUpdateEvent ) ;
199199
200200 Logger . Trace ( "Check RepositoryInfoCache CacheUpdateEvent Current:{0} Check:{1} Result:{2}" , managedCache . LastUpdatedAt ,
201201 cacheUpdateEvent . UpdatedTimeString ?? "[NULL]" , raiseEvent ) ;
@@ -212,7 +212,7 @@ public void CheckLocksChangedEvent(CacheUpdateEvent cacheUpdateEvent)
212212 {
213213 CacheUpdateEvent cacheUpdateEvent1 = cacheUpdateEvent ;
214214 var managedCache = cacheContainer . GitLocksCache ;
215- var raiseEvent = managedCache . ShouldRaiseCacheEvent ( cacheUpdateEvent1 ) ;
215+ var raiseEvent = managedCache . IsLastUpdatedTimeDifferent ( cacheUpdateEvent1 ) ;
216216
217217 Logger . Trace ( "Check GitLocksCache CacheUpdateEvent Current:{0} Check:{1} Result:{2}" , managedCache . LastUpdatedAt ,
218218 cacheUpdateEvent1 . UpdatedTimeString ?? "[NULL]" , raiseEvent ) ;
@@ -275,7 +275,7 @@ public bool Equals(IRepository other)
275275 private void CheckBranchCacheEvent ( CacheUpdateEvent cacheUpdateEvent )
276276 {
277277 var managedCache = cacheContainer . BranchCache ;
278- var raiseEvent = managedCache . ShouldRaiseCacheEvent ( cacheUpdateEvent ) ;
278+ var raiseEvent = managedCache . IsLastUpdatedTimeDifferent ( cacheUpdateEvent ) ;
279279
280280 Logger . Trace ( "Check BranchCache CacheUpdateEvent Current:{0} Check:{1} Result:{2}" , managedCache . LastUpdatedAt ,
281281 cacheUpdateEvent . UpdatedTimeString ?? "[NULL]" , raiseEvent ) ;
@@ -685,7 +685,7 @@ public User(ICacheContainer cacheContainer)
685685 public void CheckUserChangedEvent ( CacheUpdateEvent cacheUpdateEvent )
686686 {
687687 var managedCache = cacheContainer . GitUserCache ;
688- var raiseEvent = managedCache . ShouldRaiseCacheEvent ( cacheUpdateEvent ) ;
688+ var raiseEvent = managedCache . IsLastUpdatedTimeDifferent ( cacheUpdateEvent ) ;
689689
690690 Logger . Trace ( "Check GitUserCache CacheUpdateEvent Current:{0} Check:{1} Result:{2}" , managedCache . LastUpdatedAt ,
691691 cacheUpdateEvent . UpdatedTimeString ?? "[NULL]" , raiseEvent ) ;
0 commit comments