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); }
public static bool Remove(Guid mailboxGuid, DeviceIdentity deviceIdentity) { return(SyncRequestWasHangingCache.syncRequests.Remove(SyncRequestWasHangingCache.BuildKey(mailboxGuid, deviceIdentity))); }
public static void Set(Guid mailboxGuid, DeviceIdentity deviceIdentity, bool value) { SyncRequestWasHangingCache.syncRequests[SyncRequestWasHangingCache.BuildKey(mailboxGuid, deviceIdentity)] = value; }