How to add a timeout to an activity using the UiPath Activity Creator in Visual Studio

I’m trying to create a C# custom activity with timeout propertie using the Activity Creator extension in Visual Studio 2019. The UiPath Add Activities wizard has a toggle for a timeout field, with the default value of 60 seconds, but the code for the timeout does not seem to work to whatever value I fill in the timeout field.

Does anyone have any recommendations?