LoadTestingModelFactory.WeeklyRecurrence Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Recurrence model when frequency is set as weekly.
public static Azure.Developer.LoadTesting.WeeklyRecurrence WeeklyRecurrence(Azure.Developer.LoadTesting.RecurrenceEnd recurrenceEnd = default, System.Collections.Generic.IEnumerable<Azure.Developer.LoadTesting.WeekDays> daysOfWeek = default, int? interval = default);
static member WeeklyRecurrence : Azure.Developer.LoadTesting.RecurrenceEnd * seq<Azure.Developer.LoadTesting.WeekDays> * Nullable<int> -> Azure.Developer.LoadTesting.WeeklyRecurrence
Public Shared Function WeeklyRecurrence (Optional recurrenceEnd As RecurrenceEnd = Nothing, Optional daysOfWeek As IEnumerable(Of WeekDays) = Nothing, Optional interval As Nullable(Of Integer) = Nothing) As WeeklyRecurrence
Parameters
- recurrenceEnd
- RecurrenceEnd
Recurrence end model. You can specify the end either by providing a numberOfOccurrences (which will end the recurrence after the specified number of occurrences) or by providing an endDateTime (which will end the recurrence after the specified date). If neither value is provided, the recurrence will continue until it is manually ended. However, if both values are provided, an error will be thrown.
- daysOfWeek
- IEnumerable<WeekDays>
Recurrence set to repeat on the specified days of the week.
The interval at which the recurrence should repeat. It signifies the number of weeks between each recurrence.
Returns
A new WeeklyRecurrence instance for mocking.