Beispiel #1
0
 public static bool TryGet(Guid mailboxGuid, DeviceIdentity deviceIdentity, out bool value)
 {
     if (GlobalSettings.DisableCaching)
     {
         value = false;
         return(false);
     }
     if (!SyncRequestWasHangingCache.syncRequests.TryGetValue(SyncRequestWasHangingCache.BuildKey(mailboxGuid, deviceIdentity), out value))
     {
         value = false;
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 public static bool Remove(Guid mailboxGuid, DeviceIdentity deviceIdentity)
 {
     return(SyncRequestWasHangingCache.syncRequests.Remove(SyncRequestWasHangingCache.BuildKey(mailboxGuid, deviceIdentity)));
 }
Beispiel #3
0
 public static void Set(Guid mailboxGuid, DeviceIdentity deviceIdentity, bool value)
 {
     SyncRequestWasHangingCache.syncRequests[SyncRequestWasHangingCache.BuildKey(mailboxGuid, deviceIdentity)] = value;
 }