public override void Read(IByteReaderBase reader)
        {
            IDataListTranslator translator = new DataListTranslatorFactory().FetchTranslator(DataListFormat.CreateFormat(GlobalConstants._BINARY));
            ErrorResultTO tmpErrors;

            byte[] datalistData = reader.ReadByteArray();
            Datalist = null;
            if(datalistData != null)
            {
                Datalist = translator.ConvertTo(datalistData, new StringBuilder(), out tmpErrors);
            }

            Errors = ErrorResultTOExtensionMethods.FromByteArray(reader.ReadByteArray());
        }
Ejemplo n.º 2
0
 public abstract void Read(IByteReaderBase reader);
Ejemplo n.º 3
0
 private static void Deserialize(IByteReaderBase reader, ICollection<IDebugItem> items)
 {
     var count = reader.ReadInt32();
     for(var i = 0; i < count; i++)
     {
         var item = new DebugItem();
         var resultCount = reader.ReadInt32();
         for(var j = 0; j < resultCount; j++)
         {
             item.Add(new DebugItemResult
                 {
                     Type = (DebugItemResultType)reader.ReadInt32(),
                     Label = reader.ReadString(),
                     Variable = reader.ReadString(),
                     Value = reader.ReadString(),
                     GroupName = reader.ReadString(),
                     GroupIndex = reader.ReadInt32(),
                     MoreLink = reader.ReadString()
                 }, true);
         }
         items.Add(item);
     }
 }
Ejemplo n.º 4
0
        public DebugState(IByteReaderBase reader)
            : this()
        {
            WorkspaceID = reader.ReadGuid();
            ID = reader.ReadGuid();
            ParentID = reader.ReadGuid();
            StateType = (StateType)reader.ReadInt32();
            DisplayName = reader.ReadString();
            Name = reader.ReadString();
            ActivityType = (ActivityType)reader.ReadInt32();
            Version = reader.ReadString();
            IsSimulation = reader.ReadBoolean();
            HasError = reader.ReadBoolean();
            ErrorMessage = reader.ReadString();
            Server = reader.ReadString();
            ServerID = reader.ReadGuid();
            OriginatingResourceID = reader.ReadGuid();
            OriginalInstanceID = reader.ReadGuid();
            StartTime = reader.ReadDateTime();
            EndTime = reader.ReadDateTime();
            NumberOfSteps = reader.ReadInt32();
            ExecutionOrigin = (ExecutionOrigin)reader.ReadInt32();
            ExecutionOriginDescription = reader.ReadString();
            ExecutingUser = reader.ReadString();
            EnvironmentID = reader.ReadGuid();
            SessionID = reader.ReadGuid();

            Deserialize(reader, Inputs);
            Deserialize(reader, Outputs);
        }
 public override void Read(IByteReaderBase reader)
 {
     //Nothing to do since handle is the only property and it is handled by the broker
 }
 public override void Read(IByteReaderBase reader)
 {
     ID = reader.ReadGuid();
     OnlyIfNotPersisted = reader.ReadBoolean();
 }
 public override void Read(IByteReaderBase reader)
 {
     Result = reader.ReadBoolean();
     Errors = ErrorResultTOExtensionMethods.FromByteArray(reader.ReadByteArray());
 }
 public override void Read(IByteReaderBase reader)
 {
     Result = reader.ReadBoolean();
 }
 public override void Read(IByteReaderBase reader)
 {
     DatalistID = reader.ReadGuid();
     Errors     = ErrorResultTOExtensionMethods.FromByteArray(reader.ReadByteArray());
 }
 public override void Read(IByteReaderBase reader)
 {
     Result = reader.ReadBoolean();
     Errors = ErrorResultTOExtensionMethods.FromByteArray(reader.ReadByteArray());
 }
 public override void Read(IByteReaderBase reader)
 {
     ID = reader.ReadGuid();
 }
 public void Read(IByteReaderBase reader)
 {
     CallbackID  = reader.ReadGuid();
     MessageType = (ExecutionStatusCallbackMessageType)reader.ReadInt32();
 }
 public override void Read(IByteReaderBase reader)
 {
     Result = reader.ReadBoolean();
 }
 public override void Read(IByteReaderBase reader)
 {
     ID = reader.ReadGuid();
 }
 public void Read(IByteReaderBase reader)
 {
     CallbackID = reader.ReadGuid();
     MessageType = (ExecutionStatusCallbackMessageType) reader.ReadInt32();
 }
Ejemplo n.º 16
0
 public StudioAccount(IByteReaderBase reader)
     : base(reader)
 {
 }
Ejemplo n.º 17
0
 public StudioAccount(IByteReaderBase reader)
     : base(reader)
 {
 }
 public override void Read(IByteReaderBase reader)
 {
     DatalistID = reader.ReadGuid();
     Errors = ErrorResultTOExtensionMethods.FromByteArray(reader.ReadByteArray());
 }