Skip to content

Commit ac526fc

Browse files
authored
Update RetryOptions property types to be nullable (#6711)
1 parent 14adf6d commit ac526fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/WebJobs.Script.Abstractions/Description/RetryOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ public class RetryOptions
1212
/// <summary>
1313
/// Gets or sets the maximum number of retries allowed per function execution
1414
/// </summary>
15-
public int MaxRetryCount { get; set; }
15+
public int? MaxRetryCount { get; set; }
1616

1717
/// <summary>
1818
/// Gets or sets the delay that will be used between retries when using <see cref="RetryStrategy.FixedDelay"/> strategy
1919
/// </summary>
20-
public TimeSpan DelayInterval { get; set; }
20+
public TimeSpan? DelayInterval { get; set; }
2121

2222
/// <summary>
2323
/// Gets or sets the minimum retry delay when using <see cref="RetryStrategy.ExponentialBackoff"/> strategy
2424
/// </summary>
25-
public TimeSpan MinimumInterval { get; set; }
25+
public TimeSpan? MinimumInterval { get; set; }
2626

2727
/// <summary>
2828
/// Gets or sets the maximum retry delay when using <see cref="RetryStrategy.ExponentialBackoff"/> strategy
2929
/// </summary>
30-
public TimeSpan MaximumInterval { get; set; }
30+
public TimeSpan? MaximumInterval { get; set; }
3131
}
3232
}

src/WebJobs.Script.Abstractions/WebJobs.Script.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\build\common.props" />
33
<PropertyGroup>
4-
<Version>1.0.1-preview</Version>
4+
<Version>1.0.2-preview</Version>
55
<MajorMinorProductVersion>1.0</MajorMinorProductVersion>
66
<AssemblyVersion>$(MajorMinorProductVersion).0.0</AssemblyVersion>
77
<FileVersion>$(MajorMinorProductVersion).$(BuildNumber).0</FileVersion>

0 commit comments

Comments
 (0)