DebugState PopulateDebugStateWithDefaultValues(IDSFDataObject dataObject) { var debugState = new DebugState { ParentID = UniqueID.ToGuid(), WorkSurfaceMappingId = WorkSurfaceMappingId, WorkspaceID = dataObject.WorkspaceID, StateType = StateType.All, ActualType = GetType().Name, ActivityType = ActivityType.Step, DisplayName = DisplayName, IsSimulation = false, ServerID = dataObject.ServerID, ClientID = dataObject.ClientID, OriginatingResourceID = dataObject.ResourceID, SourceResourceID = dataObject.SourceResourceID, OriginalInstanceID = dataObject.OriginalInstanceID, Version = string.Empty, HasError = false, Server = GetServerName() ?? "", EnvironmentID = dataObject.DebugEnvironmentId, SessionID = dataObject.DebugSessionID, }; return(debugState); }