/// <summary> /// Deserializa os dados. /// </summary> /// <param name="reader"></param> void Serialization.ICompactSerializable.Deserialize(Serialization.IO.CompactReader reader) { if (reader.ReadBoolean()) { this.Type = new TypeName(); this.Type.Deserialize(reader); } ContractName = reader.ReadString(); if (reader.ReadBoolean()) { ContractType = new TypeName(); ContractType.Deserialize(reader); } ImportingConstructor = reader.ReadBoolean(); this.CreationPolicy = (CreationPolicy)reader.ReadInt32(); UseDispatcher = reader.ReadBoolean(); UIContext = reader.ReadString(); var count = reader.ReadInt32(); Metadata = new Dictionary <string, object>(count); for (var i = 0; i < count; i++) { var key = reader.ReadString(); var value = reader.ReadObject(); Metadata.Add(key, value); } }
public void Deserialize(Serialization.IO.CompactReader reader) { _jobIdentifier = reader.ReadString(); rootFolderName = reader.ReadString(); _creationTime = reader.ReadDateTime(); _activeConfig = reader.ReadObject() as RecoveryConfiguration; _executionState = reader.ReadObject() as ClusteredRecoveryJobState; }
public void Deserialize(Serialization.IO.CompactReader reader) { _isLastChunk = reader.ReadBoolean(); _readerUID = reader.ReadString(); _documents = (List <IJSONDocument>)reader.ReadObject(); _chunkId = reader.ReadInt32(); _queryString = reader.ReadString(); _doCaching = reader.ReadBoolean(); }
public void Deserialize(Serialization.IO.CompactReader reader) { _filePath = reader.ReadString(); FileName = Common.Util.SerializationUtility.DeserializeList <string>(reader); dbCollectionMap = Util.SerializationUtility.DeserializeDD <string, string, string[]>(reader); _database = reader.ReadString(); _cluster = reader.ReadString(); _username = reader.ReadString(); _password = reader.ReadString(); }
public override void Deserialize(Serialization.IO.CompactReader reader) { Identifier = reader.ReadString(); Message = reader.ReadString(); Status = (RecoveryStatus)reader.ReadInt32(); PercentageExecution = reader.ReadSingle(); MessageTime = reader.ReadDateTime(); StopTime = reader.ReadDateTime(); Details = Common.Util.SerializationUtility.DeserializeList <ShardRecoveryJobState>(reader); }
public virtual void Deserialize(Serialization.IO.CompactReader reader) { Identifier = reader.ReadString(); Message = reader.ReadString(); Status = (RecoveryStatus)reader.ReadObject(); PercentageExecution = reader.ReadSingle(); _entityName = reader.ReadString(); StartTime = reader.ReadDateTime(); _submissionTime = reader.ReadDateTime(); StopTime = reader.ReadDateTime(); _lastOperationID = (OperationId)reader.ReadObject(); _lastFullBackupDate = reader.ReadDateTime(); }
public override void Deserialize(Serialization.IO.CompactReader reader) { Identifier = reader.ReadString(); Message = reader.ReadString(); Status = (RecoveryStatus)reader.ReadInt32(); PercentageExecution = reader.ReadSingle(); MessageTime = reader.ReadDateTime(); StopTime = reader.ReadDateTime(); _cluster = reader.ReadString(); _shard = reader.ReadString(); _node = reader.ReadString(); _jobType = (RecoveryJobType)reader.ReadInt32(); Detail = Common.Util.SerializationUtility.DeserializeList <RecoveryJobStateBase>(reader); _lastOperationID = (OperationId)reader.ReadObject(); _lastFullBackupDate = reader.ReadDateTime(); }
public void Deserialize(Serialization.IO.CompactReader reader) { QueryText = reader.ReadString(); Parameters = reader.ReadObject() as IList <IParameter>; if (Parameters == null) { Parameters = new List <IParameter>(); } }
/// <summary> /// Desserializa o parametro. /// </summary> /// <param name="reader"></param> public void Deserialize(Serialization.IO.CompactReader reader) { Name = reader.ReadString(); Direction = (Colosoft.Query.ParameterDirection)reader.ReadInt32(); Size = reader.ReadInt32(); this.DbType = (System.Data.DbType)reader.ReadInt32(); if (reader.ReadBoolean()) { Value = reader.ReadObject(); } }
/// <summary> /// Desserializa o objeto. /// </summary> /// <param name="reader"></param> public void Deserialize(Serialization.IO.CompactReader reader) { _expression = reader.ReadString(); var parameters = new List <PersistenceParameter>(); var count = reader.ReadInt32(); for (var i = 0; i < count; i++) { var parameter = new PersistenceParameter(); ((ICompactSerializable)parameter).Deserialize(reader); parameters.Add(parameter); } _parameters = new PersistenceParameterCollection(parameters); }
/// <summary> /// Deserializa o valor. /// </summary> /// <param name="reader"></param> /// <param name="type"></param> /// <returns></returns> private object Deserialize(Serialization.IO.CompactReader reader, PrimitiveTypes type) { switch (type) { case PrimitiveTypes.Null: return(null); case PrimitiveTypes.Boolean: return(reader.ReadBoolean()); case PrimitiveTypes.Byte: return(reader.ReadByte()); case PrimitiveTypes.Bytes: var length = reader.ReadInt32(); return(reader.ReadBytes(length)); case PrimitiveTypes.Char: return(reader.ReadChar()); case PrimitiveTypes.DateTime: return(reader.ReadDateTime()); case PrimitiveTypes.DateTimeOffset: return(new DateTimeOffset(reader.ReadInt64(), new TimeSpan(reader.ReadInt64()))); case PrimitiveTypes.Decimal: return(reader.ReadDecimal()); case PrimitiveTypes.Double: return(reader.ReadDouble()); case PrimitiveTypes.Int16: return(reader.ReadInt16()); case PrimitiveTypes.Int32: return(reader.ReadInt32()); case PrimitiveTypes.Int64: return(reader.ReadInt64()); case PrimitiveTypes.Single: return(reader.ReadSingle()); case PrimitiveTypes.String: return(reader.ReadString()); } throw new InvalidOperationException("Invalid PrimitiveType"); }
/// <summary> /// Desserializa o objeto. /// </summary> /// <param name="reader"></param> public void Deserialize(Serialization.IO.CompactReader reader) { ActionId = reader.ReadInt32(); Success = reader.ReadBoolean(); AffectedRows = reader.ReadInt32(); RowVersion = reader.ReadInt64(); FailureMessage = reader.ReadString(); if (reader.ReadBoolean()) { Result = reader.ReadObject(); } var parameters = new List <PersistenceParameter>(); while (reader.ReadBoolean()) { PersistenceParameter parameter = new PersistenceParameter(); ((ICompactSerializable)parameter).Deserialize(reader); parameters.Add(parameter); } Parameters = parameters.ToArray(); var actions = new List <PersistenceActionResult>(); while (reader.ReadBoolean()) { PersistenceActionResult action = new PersistenceActionResult(); ((ICompactSerializable)action).Deserialize(reader); actions.Add(action); } AlternativeActions = actions.ToArray(); var beforeActions = new List <PersistenceActionResult>(); while (reader.ReadBoolean()) { PersistenceActionResult action = new PersistenceActionResult(); ((ICompactSerializable)action).Deserialize(reader); beforeActions.Add(action); } BeforeActions = beforeActions.ToArray(); var afterActions = new List <PersistenceActionResult>(); while (reader.ReadBoolean()) { PersistenceActionResult action = new PersistenceActionResult(); ((ICompactSerializable)action).Deserialize(reader); afterActions.Add(action); } AfterActions = afterActions.ToArray(); }
public void Deserialize(Serialization.IO.CompactReader reader) { _jobType = (RecoveryJobType)reader.ReadInt32(); _operation = (RecoveryOpCodes)reader.ReadInt32(); _identifier = reader.ReadString(); _cluster = reader.ReadString(); _executionPreference = (ExecutionPreference)reader.ReadInt32(); _configCluster = reader.ReadString(); _recoveryPath = reader.ReadString(); _renameMapping = Util.SerializationUtility.DeserializeDictionary <string, string>(reader); _creationTime = reader.ReadDateTime(); _username = reader.ReadString(); _password = reader.ReadString(); }
public void Deserialize(Serialization.IO.CompactReader reader) { _database = reader.ReadString(); trackObjects = Util.SerializationUtility.DeserializeList <DiffTrackObject>(reader); }
/// <summary> /// Deserializa os dados da instancia. /// </summary> /// <param name="reader"></param> public void Deserialize(Serialization.IO.CompactReader reader) { _source = reader.ReadString(); }
public void Deserialize(Serialization.IO.CompactReader reader) { _shard = reader.ReadString(); _stats = reader.ReadObject() as ShardStatistics; }
public void Deserialize(Serialization.IO.CompactReader reader) { _jobIdentifier = reader.ReadString(); Message = reader.ReadString(); Status = (RecoveryStatus)reader.ReadObject(); }
public void Deserialize(Serialization.IO.CompactReader reader) { Name = reader.ReadString(); Value = reader.ReadObject(); }
/// <summary> /// Deserializa os dados da instancia. /// </summary> /// <param name="reader"></param> public void Deserialize(Serialization.IO.CompactReader reader) { var name = reader.ReadString(); new Parser().Parse(name, this); }
public void Deserialize(Serialization.IO.CompactReader reader) { Name = reader.ReadString(); Type = reader.ReadString(); }
/// <summary> /// Desserializa o objeto. /// </summary> /// <param name="reader"></param> public void Deserialize(Serialization.IO.CompactReader reader) { ActionId = reader.ReadInt32(); Type = (PersistenceActionType)reader.ReadInt32(); EntityFullName = reader.ReadString(); ProviderName = reader.ReadString(); var RowVersionString = reader.ReadString(); if (!string.IsNullOrEmpty(RowVersionString)) { RowVersion = long.Parse(RowVersionString); } else { RowVersion = null; } var parameters = new List <PersistenceParameter>(); var count = reader.ReadInt32(); for (var i = 0; i < count; i++) { var parameter = new PersistenceParameter(); ((ICompactSerializable)parameter).Deserialize(reader); parameters.Add(parameter); } Parameters = new PersistenceParameterCollection(parameters); if (reader.ReadBoolean()) { var conditional = new Colosoft.Query.ConditionalContainer(); ((ICompactSerializable)conditional).Deserialize(reader); this.Conditional = conditional; } var actions = new List <PersistenceAction>(); count = reader.ReadInt32(); for (var i = 0; i < count; i++) { var persistenceAction = new PersistenceAction(); ((ICompactSerializable)persistenceAction).Deserialize(reader); actions.Add(persistenceAction); } AlternativeActions.AddRange(actions); var beforeActions = new List <PersistenceAction>(); count = reader.ReadInt32(); for (var i = 0; i < count; i++) { var persistenceAction = new PersistenceAction(); ((ICompactSerializable)persistenceAction).Deserialize(reader); beforeActions.Add(persistenceAction); } BeforeActions.AddRange(beforeActions); var afterActions = new List <PersistenceAction>(); count = reader.ReadInt32(); for (var i = 0; i < count; i++) { var persistenceAction = new PersistenceAction(); ((ICompactSerializable)persistenceAction).Deserialize(reader); afterActions.Add(persistenceAction); } AfterActions.AddRange(afterActions); if (reader.ReadBoolean()) { _storedProcedureName = new Colosoft.Query.StoredProcedureName(); ((ICompactSerializable)_storedProcedureName).Deserialize(reader); } if (reader.ReadBoolean()) { var query = new Colosoft.Query.QueryInfo(); ((ICompactSerializable)query).Deserialize(reader); this.Query = query; } }
public void Deserialize(Serialization.IO.CompactReader reader) { _identifer = reader.ReadString(); _opCode = (RecoveryOpCodes)reader.ReadObject(); _parameter = reader.ReadObject(); }