diff --git a/src/Dapr.Jobs/Models/DaprJobSchedule.cs b/src/Dapr.Jobs/Models/DaprJobSchedule.cs index 5aa110f04..1fc0f63b9 100644 --- a/src/Dapr.Jobs/Models/DaprJobSchedule.cs +++ b/src/Dapr.Jobs/Models/DaprJobSchedule.cs @@ -91,32 +91,32 @@ public static DaprJobSchedule FromDuration(TimeSpan duration) /// /// Specifies a schedule in which the job is triggered to run once a year. /// - public static DaprJobSchedule Yearly => new DaprJobSchedule("@yearly"); + public static DaprJobSchedule Yearly { get; } = new DaprJobSchedule("@yearly"); /// /// Specifies a schedule in which the job is triggered monthly. /// - public static DaprJobSchedule Monthly => new DaprJobSchedule("@monthly"); + public static DaprJobSchedule Monthly { get; } = new DaprJobSchedule("@monthly"); /// /// Specifies a schedule in which the job is triggered weekly. /// - public static DaprJobSchedule Weekly => new DaprJobSchedule("@weekly"); + public static DaprJobSchedule Weekly { get; } =new DaprJobSchedule("@weekly"); /// /// Specifies a schedule in which the job is triggered daily. /// - public static DaprJobSchedule Daily => new DaprJobSchedule("@daily"); + public static DaprJobSchedule Daily { get; } = new DaprJobSchedule("@daily"); /// /// Specifies a schedule in which the job is triggered once a day at midnight. /// - public static DaprJobSchedule Midnight => new DaprJobSchedule("@midnight"); + public static DaprJobSchedule Midnight { get; } = new DaprJobSchedule("@midnight"); /// /// Specifies a schedule in which the job is triggered at the top of every hour. /// - public static DaprJobSchedule Hourly => new DaprJobSchedule("@hourly"); + public static DaprJobSchedule Hourly { get; } = new DaprJobSchedule("@hourly"); /// /// Reflects that the schedule represents a prefixed period expression.