-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #444 from microsoft/main
Merge main into release v3
- Loading branch information
Showing
27 changed files
with
3,090 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Microsoft.FeatureManagement/FeatureFilters/ISystemClock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// | ||
|
||
using System; | ||
|
||
namespace Microsoft.FeatureManagement.FeatureFilters | ||
{ | ||
/// <summary> | ||
/// Abstracts the system clock to facilitate testing. | ||
/// .NET8 offers an abstract class TimeProvider. After we stop supporting .NET version less than .NET8, this ISystemClock should retire. | ||
/// </summary> | ||
internal interface ISystemClock | ||
{ | ||
/// <summary> | ||
/// Retrieves the current system time in UTC. | ||
/// </summary> | ||
public DateTimeOffset UtcNow { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Microsoft.FeatureManagement/FeatureFilters/Recurrence/Recurrence.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// | ||
namespace Microsoft.FeatureManagement.FeatureFilters | ||
{ | ||
/// <summary> | ||
/// A recurrence definition describing how time window recurs | ||
/// </summary> | ||
public class Recurrence | ||
{ | ||
/// <summary> | ||
/// The recurrence pattern specifying how often the time window repeats | ||
/// </summary> | ||
public RecurrencePattern Pattern { get; set; } | ||
|
||
/// <summary> | ||
/// The recurrence range specifying how long the recurrence pattern repeats | ||
/// </summary> | ||
public RecurrenceRange Range { get; set; } | ||
} | ||
} |
Oops, something went wrong.