-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathScheduleStatus.cs
35 lines (31 loc) · 1.27 KB
/
ScheduleStatus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
namespace Microsoft.Azure.WebJobs.Extensions.Timers
{
/// <summary>
/// Represents a timer schedule status. The scheduler uses this information to calculate
/// function invocation times.
/// </summary>
public class ScheduleStatus
{
/// <summary>
/// Gets or sets the last recorded schedule occurrence.
/// </summary>
public DateTime Last { get; set; }
/// <summary>
/// Gets or sets the expected next schedule occurrence.
/// </summary>
/// <remarks>
/// When a function is invoked by the scheduler, the value of this property
/// will effectively be the current time. To determine the next schedule occurrence
/// from the current invocation, <see cref="TimerInfo.Schedule"/> can be used.
/// </remarks>
public DateTime Next { get; set; }
/// <summary>
/// Gets or sets the last time this record was updated. This is used to re-calculate Next
/// with the current Schedule after a host restart.
/// </summary>
public DateTime LastUpdated { get; set; }
}
}