// Token: 0x06000555 RID: 1365 RVA: 0x0001ED04 File Offset: 0x0001CF04 public static List <Exception> ResetAutoBlockedDevices(MailboxSession mailboxSession) { List <Exception> list = new List <Exception>(); IEnumerator enumerator = SyncStateStorage.GetEnumerator(mailboxSession, null); using (enumerator as IDisposable) { while (enumerator.MoveNext()) { object obj = enumerator.Current; SyncStateStorage syncStateStorage = (SyncStateStorage)obj; if (syncStateStorage.DeviceIdentity.IsProtocol("AirSync")) { try { using (GlobalInfo globalInfo = GlobalInfo.LoadFromMailbox(mailboxSession, syncStateStorage, null)) { if (globalInfo.DeviceBehavior.AutoBlockReason != DeviceAccessStateReason.Unknown) { globalInfo.DeviceBehavior.UnblockDevice(); globalInfo.IsDirty = true; globalInfo.SaveToMailbox(); } } } catch (LocalizedException item) { list.Add(item); } } } } return(list); }
// Token: 0x06000AA9 RID: 2729 RVA: 0x0003B150 File Offset: 0x00039350 public static GlobalInfo LoadFromMailbox(MailboxSession mailboxSession, SyncStateStorage syncStateStorage, ProtocolLogger protocolLogger) { bool flag; return(GlobalInfo.LoadFromMailbox(mailboxSession, syncStateStorage, protocolLogger, out flag)); }