Set the default value for Interval to match DefaultValue (should fix #4818) (#4926)

This commit is contained in:
Mohamed Ali 2024-02-17 11:20:07 +03:00 committed by GitHub
parent 177891c91b
commit f85615fb8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ public class Timer : EventGenerator
/// The interval at which the timer should execute.
/// </summary>
[Input(Description = "The interval at which the timer should execute.", DefaultValue = "00:01:00")]
public Input<TimeSpan> Interval { get; set; } = default!;
public Input<TimeSpan> Interval { get; set; } = new(TimeSpan.FromMinutes(1));
/// <inheritdoc />
protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)