Skip to content

Commit f88dc6a

Browse files
Add ProjectId to triggerUseageLogArgs and check if set and update ProjectId (#511)
2 parents b63464c + 9f810b0 commit f88dc6a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

UI_Engine/Compute/LogUsage.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public static void LogUsage(string uiName, string uiVersion, Guid componentId, s
7979
};
8080

8181
TriggerUsageLog(args);
82+
//Check if the projectID has been set to the args
83+
if (!string.IsNullOrWhiteSpace(args.ProjectID))
84+
{
85+
projectId = args.ProjectID; //Set the project ID
86+
UpdateProjectId(uiName, fileId, projectId); //Ensure the project ID is udpated
87+
}
8288
}
8389
}
8490
}

UI_oM/TriggerLogUsageArgs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class TriggerLogUsageArgs : EventArgs, IObject
3939
public virtual Guid ComponentID { get; set; } = Guid.Empty;
4040
public virtual string FileID { get; set; } = "";
4141
public virtual string FileName { get; set; } = "";
42+
public virtual string ProjectID { get; set; } = null;
4243
}
4344
}
4445

0 commit comments

Comments
 (0)