Esempio n. 1
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);
        }
Esempio n. 2
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);
            }
        }
Esempio 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);
     }
 }
Esempio 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);
        }