Example #1
0
 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);
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #4
0
 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;
 }
Example #5
0
 void Serialization.ICompactSerializable.Deserialize(Serialization.IO.CompactReader reader)
 {
     if (reader.ReadByte() == 1)
     {
         _typeName = new Reflection.TypeName();
         _typeName.Deserialize(reader);
     }
     else
     {
         _typeName = null;
     }
     _version = reader.ReadDateTime();
 }
Example #6
0
        /// <summary>
        /// Deserializa os dados da instancia.
        /// </summary>
        /// <param name="reader"></param>
        public void Deserialize(Serialization.IO.CompactReader reader)
        {
            _uid        = reader.ReadGuid();
            _createTime = reader.ReadDateTime();
            var count = reader.ReadInt32();

            while (count-- > 0)
            {
                var part = new AssemblyPart();
                part.Deserialize(reader);
                _items.Add(part);
            }
        }
Example #7
0
 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();
 }
Example #8
0
        /// <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");
        }
Example #9
0
 /// <summary>
 /// Deserializa os dados da instancia.
 /// </summary>
 /// <param name="reader"></param>
 void Colosoft.Serialization.ICompactSerializable.Deserialize(Serialization.IO.CompactReader reader)
 {
     if (reader.ReadByte() == 1)
     {
         _typeName = new Reflection.TypeName();
         _typeName.Deserialize(reader);
     }
     else
     {
         _typeName = null;
     }
     _version = reader.ReadDateTime();
     if (reader.ReadByte() == 1)
     {
         _result = new Query.QueryResult();
         ((Colosoft.Serialization.ICompactSerializable)_result).Deserialize(reader);
     }
     else
     {
         _result = new Query.QueryResult();
     }
 }