// Token: 0x060008EA RID: 2282 RVA: 0x000355C0 File Offset: 0x000337C0 public virtual void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { new GenericDictionaryData <StringData, string, DerivedData <ISyncItemId>, ISyncItemId>(this.syncIdToMailboxIdTable).SerializeData(writer, componentDataPool); new GenericListData <StringData, string>(this.deletedItems).SerializeData(writer, componentDataPool); new GenericListData <StringData, string>(this.addedItems).SerializeData(writer, componentDataPool); writer.Write(this.uniqueCounter); }
public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { writer.Write(this.calendarItem); componentDataPool.GetDateTimeDataInstance().Bind(this.endTime).SerializeData(writer, componentDataPool); writer.Write(this.recurring); writer.Write(this.doesRecurrenceEnd); }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { GenericListData <DerivedData <ISyncItemId>, ISyncItemId> genericListData = new GenericListData <DerivedData <ISyncItemId>, ISyncItemId>(); genericListData.DeserializeData(reader, componentDataPool); this.Ocurrences = genericListData.Data; }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { GenericDictionaryData <DerivedData <ISyncItemId>, ISyncItemId, FolderTree.FolderInfo> genericDictionaryData = new GenericDictionaryData <DerivedData <ISyncItemId>, ISyncItemId, FolderTree.FolderInfo>(); genericDictionaryData.DeserializeData(reader, componentDataPool); this.folderTree = genericDictionaryData.Data; }
// Token: 0x0600056D RID: 1389 RVA: 0x00020424 File Offset: 0x0001E624 internal void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { lock (this.instanceLock) { if (!this.Validate()) { throw new InvalidOperationException("DeviceBehavior data is invalid prior to serialization"); } GenericListData <DateTimeData, ExDateTime> genericListData = new GenericListData <DateTimeData, ExDateTime>(this.userAgentTimes); genericListData.SerializeData(writer, componentDataPool); GenericListData <StringData, string> genericListData2 = new GenericListData <StringData, string>(this.userAgentStrings); genericListData2.SerializeData(writer, componentDataPool); GenericListData <DateTimeData, ExDateTime> genericListData3 = new GenericListData <DateTimeData, ExDateTime>(this.recentCommandTimes); genericListData3.SerializeData(writer, componentDataPool); GenericListData <Int32Data, int> genericListData4 = new GenericListData <Int32Data, int>(this.recentCommandHashCodes); genericListData4.SerializeData(writer, componentDataPool); GenericListData <DateTimeData, ExDateTime> genericListData5 = new GenericListData <DateTimeData, ExDateTime>(this.watsons); genericListData5.SerializeData(writer, componentDataPool); GenericListData <DateTimeData, ExDateTime> genericListData6 = new GenericListData <DateTimeData, ExDateTime>(this.outOfBudgets); genericListData6.SerializeData(writer, componentDataPool); GenericListData <DateTimeData, ExDateTime> genericListData7 = new GenericListData <DateTimeData, ExDateTime>(this.syncTimes); genericListData7.SerializeData(writer, componentDataPool); GenericListData <Int32Data, int> genericListData8 = new GenericListData <Int32Data, int>(this.syncKeys); genericListData8.SerializeData(writer, componentDataPool); componentDataPool.GetDateTimeDataInstance().Bind(this.blockTime).SerializeData(writer, componentDataPool); componentDataPool.GetDateTimeDataInstance().Bind(this.nextUnblockTime).SerializeData(writer, componentDataPool); componentDataPool.GetInt32DataInstance().Bind((int)this.autoBlockReason).SerializeData(writer, componentDataPool); componentDataPool.GetDateTimeDataInstance().Bind(this.timeToUpdateAD).SerializeData(writer, componentDataPool); } }
// Token: 0x060016EE RID: 5870 RVA: 0x00089B40 File Offset: 0x00087D40 public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { Int32Data int32DataInstance = componentDataPool.GetInt32DataInstance(); int32DataInstance.DeserializeData(reader, componentDataPool); this.cacheEntryId = int32DataInstance.Data; }
internal void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); if (string.IsNullOrEmpty(stringDataInstance.Data)) { throw new CorruptSyncStateException(new LocalizedString("[MeetingOrganizerEntry.DeserializeData] deserialized Uid was null or empty."), null); } this.CleanGlobalObjectId = new GlobalObjectId(stringDataInstance.Data); DateTimeData dateTimeDataInstance = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance.DeserializeData(reader, componentDataPool); this.EntryTime = (DateTime)dateTimeDataInstance.Data; StringData stringDataInstance2 = componentDataPool.GetStringDataInstance(); stringDataInstance2.DeserializeData(reader, componentDataPool); this.Organizer = stringDataInstance2.Data; NullableData <BooleanData, bool> nullableData = new NullableData <BooleanData, bool>(); nullableData.DeserializeData(reader, componentDataPool); this.IsOrganizer = nullableData.Data; StringData stringDataInstance3 = componentDataPool.GetStringDataInstance(); stringDataInstance3.DeserializeData(reader, componentDataPool); this.Subject = stringDataInstance3.Data; }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); this.nativeId = stringDataInstance.Data; }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { DerivedData <ISyncItemId> derivedData = new DerivedData <ISyncItemId>(); derivedData.DeserializeData(reader, componentDataPool); this.ParentId = derivedData.Data; GenericListData <DerivedData <ISyncItemId>, ISyncItemId> genericListData = new GenericListData <DerivedData <ISyncItemId>, ISyncItemId>(); genericListData.DeserializeData(reader, componentDataPool); this.Children = genericListData.Data; BooleanData booleanDataInstance = componentDataPool.GetBooleanDataInstance(); booleanDataInstance.DeserializeData(reader, componentDataPool); this.hidden = booleanDataInstance.Data; booleanDataInstance.DeserializeData(reader, componentDataPool); this.HiddenDueToParent = booleanDataInstance.Data; Int32Data int32DataInstance = componentDataPool.GetInt32DataInstance(); int32DataInstance.DeserializeData(reader, componentDataPool); this.Permissions = (SyncPermissions)int32DataInstance.Data; StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); this.Owner = stringDataInstance.Data; }
public override void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { base.DeserializeData(reader, componentDataPool); StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); this.parentSyncId = stringDataInstance.Data; }
internal void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { lock (this.instanceLock) { componentDataPool.GetDateTimeDataInstance().Bind(this.LastCleanTime).SerializeData(writer, componentDataPool); GenericDictionaryData <StringData, string, MeetingOrganizerEntryData, MeetingOrganizerEntry> genericDictionaryData = new GenericDictionaryData <StringData, string, MeetingOrganizerEntryData, MeetingOrganizerEntry>(this.map); genericDictionaryData.SerializeData(writer, componentDataPool); } }
public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { GenericDictionaryData <DerivedData <RecipientInfoCacheSyncItemId>, RecipientInfoCacheSyncItemId, Int64Data, long> genericDictionaryData = new GenericDictionaryData <DerivedData <RecipientInfoCacheSyncItemId>, RecipientInfoCacheSyncItemId, Int64Data, long>(); genericDictionaryData.Bind(this.cacheEntryIdToLastUpdateTime).SerializeData(writer, componentDataPool); DateTimeData dateTimeData = new DateTimeData(this.LastModifiedTime); dateTimeData.SerializeData(writer, componentDataPool); }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { this.calendarItem = reader.ReadBoolean(); DateTimeData dateTimeDataInstance = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance.DeserializeData(reader, componentDataPool); this.endTime = dateTimeDataInstance.Data; this.recurring = reader.ReadBoolean(); this.doesRecurrenceEnd = reader.ReadBoolean(); }
// Token: 0x0600092F RID: 2351 RVA: 0x00036498 File Offset: 0x00034698 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { DerivedData<ISyncItemId> derivedData = new DerivedData<ISyncItemId>(this.ParentId); derivedData.SerializeData(writer, componentDataPool); GenericListData<DerivedData<ISyncItemId>, ISyncItemId> genericListData = new GenericListData<DerivedData<ISyncItemId>, ISyncItemId>(this.Children); genericListData.SerializeData(writer, componentDataPool); componentDataPool.GetBooleanDataInstance().Bind(this.hidden).SerializeData(writer, componentDataPool); componentDataPool.GetBooleanDataInstance().Bind(this.HiddenDueToParent).SerializeData(writer, componentDataPool); componentDataPool.GetInt32DataInstance().Bind((int)this.Permissions).SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.Owner).SerializeData(writer, componentDataPool); }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { GenericDictionaryData <DerivedData <RecipientInfoCacheSyncItemId>, RecipientInfoCacheSyncItemId, Int64Data, long> genericDictionaryData = new GenericDictionaryData <DerivedData <RecipientInfoCacheSyncItemId>, RecipientInfoCacheSyncItemId, Int64Data, long>(); genericDictionaryData.DeserializeData(reader, componentDataPool); this.cacheEntryIdToLastUpdateTime = genericDictionaryData.Data; DateTimeData dateTimeData = new DateTimeData(); dateTimeData.DeserializeData(reader, componentDataPool); this.lastModifiedTime = dateTimeData.Data; }
// Token: 0x060015CA RID: 5578 RVA: 0x00080E1C File Offset: 0x0007F01C protected void Load(string base64SyncData) { byte[] array = SyncCalendarSyncStateBase.ConvertBase64SyncStateData(base64SyncData); ExTraceGlobals.MethodEnterExitTracer.TraceDebug((long)this.GetHashCode(), "SyncCalendarSyncStateBase.Load called."); GenericDictionaryData <StringData, string, DerivedData <ICustomSerializableBuilder> > genericDictionaryData = null; try { if (array != null && array.Length > 0) { using (MemoryStream memoryStream = new MemoryStream(array)) { using (MemoryStream memoryStream2 = new MemoryStream()) { using (BinaryReader binaryReader = new BinaryReader(memoryStream2)) { ComponentDataPool componentDataPool = new ComponentDataPool(); byte[] transferBuffer = new byte[71680]; SerializationHelper.Decompress(memoryStream, memoryStream2, transferBuffer); memoryStream2.Seek(0L, SeekOrigin.Begin); GenericDictionaryData <StringData, string, DerivedData <ICustomSerializableBuilder> > genericDictionaryData2 = new GenericDictionaryData <StringData, string, DerivedData <ICustomSerializableBuilder> >(); genericDictionaryData2.DeserializeData(binaryReader, componentDataPool); genericDictionaryData = genericDictionaryData2; } } } if (genericDictionaryData == null) { throw new CorruptSyncStateException("No SyncStateDictionaryData", null); } } else { genericDictionaryData = new GenericDictionaryData <StringData, string, DerivedData <ICustomSerializableBuilder> >(new Dictionary <string, DerivedData <ICustomSerializableBuilder> >()); this.InitializeSyncState(genericDictionaryData.Data); } this.VerifySyncState(genericDictionaryData.Data); } catch (CustomSerializationException innerException) { throw new CorruptSyncStateException("SyncCalendarSyncStateBase.Load caught", innerException); } catch (ArgumentException innerException2) { throw new CorruptSyncStateException("SyncCalendarSyncStateBase.Load caught", innerException2); } catch (EndOfStreamException innerException3) { throw new CorruptSyncStateException("SyncCalendarSyncStateBase.Load caught", innerException3); } this.syncStateTable = genericDictionaryData; ExTraceGlobals.MethodEnterExitTracer.TraceDebug((long)this.GetHashCode(), "SyncCalendarSyncStateBase.Load successful."); }
// Token: 0x060016D3 RID: 5843 RVA: 0x0008983C File Offset: 0x00087A3C public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { DateTimeData dateTimeDataInstance = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance.DeserializeData(reader, componentDataPool); this.ReceivedDateUtc = dateTimeDataInstance.Data; ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance(); byteArrayInstance.DeserializeData(reader, componentDataPool); this.IcsState = byteArrayInstance.Data; this.ChangeNumber = reader.ReadInt32(); }
internal void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { if (this.CleanGlobalObjectId == null) { throw new CorruptSyncStateException(new LocalizedString("[MeetingOrganizerEntry.SerializeData] CleanGlobalObjectId cannot be null during serialization."), null); } componentDataPool.GetStringDataInstance().Bind(this.CleanGlobalObjectId.Uid).SerializeData(writer, componentDataPool); componentDataPool.GetDateTimeDataInstance().Bind((ExDateTime)this.EntryTime).SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.Organizer).SerializeData(writer, componentDataPool); NullableData <BooleanData, bool> nullableData = new NullableData <BooleanData, bool>(); nullableData.Bind(this.IsOrganizer).SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.Subject).SerializeData(writer, componentDataPool); }
// Token: 0x0600056E RID: 1390 RVA: 0x0002058C File Offset: 0x0001E78C internal void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { lock (this.instanceLock) { GenericListData <DateTimeData, ExDateTime> genericListData = new GenericListData <DateTimeData, ExDateTime>(); genericListData.DeserializeData(reader, componentDataPool); this.userAgentTimes = genericListData.Data; GenericListData <StringData, string> genericListData2 = new GenericListData <StringData, string>(); genericListData2.DeserializeData(reader, componentDataPool); this.userAgentStrings = genericListData2.Data; GenericListData <DateTimeData, ExDateTime> genericListData3 = new GenericListData <DateTimeData, ExDateTime>(); genericListData3.DeserializeData(reader, componentDataPool); this.recentCommandTimes = genericListData3.Data; GenericListData <Int32Data, int> genericListData4 = new GenericListData <Int32Data, int>(); genericListData4.DeserializeData(reader, componentDataPool); this.recentCommandHashCodes = genericListData4.Data; GenericListData <DateTimeData, ExDateTime> genericListData5 = new GenericListData <DateTimeData, ExDateTime>(); genericListData5.DeserializeData(reader, componentDataPool); this.watsons = genericListData5.Data; GenericListData <DateTimeData, ExDateTime> genericListData6 = new GenericListData <DateTimeData, ExDateTime>(); genericListData6.DeserializeData(reader, componentDataPool); this.outOfBudgets = genericListData6.Data; GenericListData <DateTimeData, ExDateTime> genericListData7 = new GenericListData <DateTimeData, ExDateTime>(); genericListData7.DeserializeData(reader, componentDataPool); this.syncTimes = genericListData7.Data; GenericListData <Int32Data, int> genericListData8 = new GenericListData <Int32Data, int>(); genericListData8.DeserializeData(reader, componentDataPool); this.syncKeys = genericListData8.Data; DateTimeData dateTimeDataInstance = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance.DeserializeData(reader, componentDataPool); this.blockTime = dateTimeDataInstance.Data; DateTimeData dateTimeDataInstance2 = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance2.DeserializeData(reader, componentDataPool); this.nextUnblockTime = dateTimeDataInstance2.Data; Int32Data int32DataInstance = componentDataPool.GetInt32DataInstance(); int32DataInstance.DeserializeData(reader, componentDataPool); this.autoBlockReason = (DeviceAccessStateReason)int32DataInstance.Data; DateTimeData dateTimeDataInstance3 = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance3.DeserializeData(reader, componentDataPool); this.timeToUpdateAD = dateTimeDataInstance3.Data; if (!this.Validate()) { throw new CorruptSyncStateException(new LocalizedString("DeviceBehavior.DeserializeData"), null); } } }
internal void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { lock (this.instanceLock) { DateTimeData dateTimeDataInstance = componentDataPool.GetDateTimeDataInstance(); dateTimeDataInstance.DeserializeData(reader, componentDataPool); this.LastCleanTime = dateTimeDataInstance.Data; GenericDictionaryData <StringData, string, MeetingOrganizerEntryData, MeetingOrganizerEntry> genericDictionaryData = new GenericDictionaryData <StringData, string, MeetingOrganizerEntryData, MeetingOrganizerEntry>(); genericDictionaryData.DeserializeData(reader, componentDataPool); this.map = genericDictionaryData.Data; this.IsDirty = false; if (this.LastCleanTime - (ExDateTime)TimeProvider.UtcNow > MeetingOrganizerInfo.AllowedClockSkew) { throw new CorruptSyncStateException(new LocalizedString("DeviceBehavior.DeserializeData"), null); } this.CleanIfNecessary(); } }
public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { string text = reader.ReadString(); if (string.IsNullOrEmpty(text)) { throw new CorruptSyncStateException("AirSyncCalendarSyncState.DeserializeData.EmptyString", null); } string[] array = text.Split(new char[] { ',' }); if (array.Length != 7 || array[0] != "v2") { throw new CorruptSyncStateException("AirSyncCalendarSyncState.DeserializeData.InvalidVersion", null); } base.IcsSyncState = array[1]; base.OldWindowEnd = CalendarSyncState.SafeGetDateTimeValue(array[6]); base.QueryResumptionPoint = CalendarSyncState.SafeGetResumptionPoint(array[2], array[3], array[4], array[5]); }
// Token: 0x060015C9 RID: 5577 RVA: 0x00080D68 File Offset: 0x0007EF68 public string SerializeAsBase64String() { ExTraceGlobals.MethodEnterExitTracer.TraceDebug((long)this.GetHashCode(), "SyncCalendarSyncStateBase.SerializeAsBase64String called."); ComponentDataPool componentDataPool = new ComponentDataPool(); string result; using (MemoryStream memoryStream = new MemoryStream()) { using (BinaryWriter binaryWriter = new BinaryWriter(memoryStream)) { this.syncStateTable.SerializeData(binaryWriter, componentDataPool); using (MemoryStream memoryStream2 = new MemoryStream()) { memoryStream.Seek(0L, SeekOrigin.Begin); SerializationHelper.Compress(memoryStream, memoryStream2); result = Convert.ToBase64String(memoryStream2.ToArray()); } } } return(result); }
// Token: 0x060008E7 RID: 2279 RVA: 0x00035378 File Offset: 0x00033578 public virtual void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { if (componentDataPool.ExternalVersion < 1) { GenericDictionaryData <StringData, string, StoreObjectIdData, StoreObjectId> genericDictionaryData = new GenericDictionaryData <StringData, string, StoreObjectIdData, StoreObjectId>(); genericDictionaryData.DeserializeData(reader, componentDataPool); Dictionary <string, StoreObjectId> data = genericDictionaryData.Data; this.syncIdToMailboxIdTable = new Dictionary <string, ISyncItemId>(data.Count); using (Dictionary <string, StoreObjectId> .Enumerator enumerator = data.GetEnumerator()) { while (enumerator.MoveNext()) { KeyValuePair <string, StoreObjectId> keyValuePair = enumerator.Current; this.syncIdToMailboxIdTable[keyValuePair.Key] = MailboxSyncItemId.CreateForNewItem(keyValuePair.Value); } goto IL_92; } } GenericDictionaryData <StringData, string, DerivedData <ISyncItemId>, ISyncItemId> genericDictionaryData2 = new GenericDictionaryData <StringData, string, DerivedData <ISyncItemId>, ISyncItemId>(); genericDictionaryData2.DeserializeData(reader, componentDataPool); this.syncIdToMailboxIdTable = genericDictionaryData2.Data; IL_92: this.mailboxIdToSyncIdTable = new Dictionary <ISyncItemId, string>(this.syncIdToMailboxIdTable.Count); foreach (KeyValuePair <string, ISyncItemId> keyValuePair2 in this.syncIdToMailboxIdTable) { this.mailboxIdToSyncIdTable.Add(keyValuePair2.Value, keyValuePair2.Key); } GenericListData <StringData, string> genericListData = new GenericListData <StringData, string>(); genericListData.DeserializeData(reader, componentDataPool); this.deletedItems = genericListData.Data; genericListData.DeserializeData(reader, componentDataPool); this.addedItems = genericListData.Data; this.uniqueCounter = reader.ReadInt64(); }
public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { componentDataPool.GetStringDataInstance().Bind(this.nativeId).SerializeData(writer, componentDataPool); }
// Token: 0x060016EF RID: 5871 RVA: 0x00089B68 File Offset: 0x00087D68 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { componentDataPool.GetInt32DataInstance().Bind(this.cacheEntryId).SerializeData(writer, componentDataPool); }
// Token: 0x06000CAD RID: 3245 RVA: 0x00043F3D File Offset: 0x0004213D public override void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { base.Data.SerializeData(writer, componentDataPool); }
// Token: 0x06000CAC RID: 3244 RVA: 0x00043F2E File Offset: 0x0004212E public override void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { base.Data.DeserializeData(reader, componentDataPool); }
public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { GenericListData <DerivedData <ISyncItemId>, ISyncItemId> genericListData = new GenericListData <DerivedData <ISyncItemId>, ISyncItemId>(this.Ocurrences); genericListData.SerializeData(writer, componentDataPool); }
// Token: 0x060016D6 RID: 5846 RVA: 0x000898C2 File Offset: 0x00087AC2 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { componentDataPool.GetDateTimeDataInstance().Bind(this.ReceivedDateUtc).SerializeData(writer, componentDataPool); componentDataPool.GetByteArrayInstance().Bind(this.IcsState).SerializeData(writer, componentDataPool); writer.Write(this.ChangeNumber); }
public override void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { base.SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.parentSyncId).SerializeData(writer, componentDataPool); }