Skip to content

Commit

Permalink
add nullable check
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian committed Oct 21, 2024
1 parent d7ba384 commit 8bb1601
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
19 changes: 9 additions & 10 deletions src/WebJobs.Extensions.DurableTask/HttpManagementPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using Newtonsoft.Json;

#nullable enable
namespace Microsoft.Azure.WebJobs.Extensions.DurableTask
{
/// <summary>
Expand All @@ -18,7 +17,7 @@ public class HttpManagementPayload
/// The ID of the orchestration instance.
/// </value>
[JsonProperty("id")]
public string? Id { get; internal set; }
public string Id { get; internal set; }

/// <summary>
/// Gets the HTTP GET status query endpoint URL.
Expand All @@ -27,7 +26,7 @@ public class HttpManagementPayload
/// The HTTP URL for fetching the instance status.
/// </value>
[JsonProperty("statusQueryGetUri")]
public string? StatusQueryGetUri { get; internal set; }
public string StatusQueryGetUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST external event sending endpoint URL.
Expand All @@ -36,7 +35,7 @@ public class HttpManagementPayload
/// The HTTP URL for posting external event notifications.
/// </value>
[JsonProperty("sendEventPostUri")]
public string? SendEventPostUri { get; internal set; }
public string SendEventPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance termination endpoint.
Expand All @@ -45,7 +44,7 @@ public class HttpManagementPayload
/// The HTTP URL for posting instance termination commands.
/// </value>
[JsonProperty("terminatePostUri")]
public string? TerminatePostUri { get; internal set; }
public string TerminatePostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance rewind endpoint.
Expand All @@ -54,7 +53,7 @@ public class HttpManagementPayload
/// The HTTP URL for rewinding orchestration instances.
/// </value>
[JsonProperty("rewindPostUri")]
public string? RewindPostUri { get; internal set; }
public string RewindPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP DELETE purge instance history by instance ID endpoint.
Expand All @@ -63,7 +62,7 @@ public class HttpManagementPayload
/// The HTTP URL for purging instance history by instance ID.
/// </value>
[JsonProperty("purgeHistoryDeleteUri")]
public string? PurgeHistoryDeleteUri { get; internal set; }
public string PurgeHistoryDeleteUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance restart endpoint.
Expand All @@ -72,7 +71,7 @@ public class HttpManagementPayload
/// The HTTP URL for restarting an orchestration instance.
/// </value>
[JsonProperty("restartPostUri")]
public string? RestartPostUri { get; internal set; }
public string RestartPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance suspend endpoint.
Expand All @@ -81,7 +80,7 @@ public class HttpManagementPayload
/// The HTTP URL for suspending an orchestration instance.
/// </value>
[JsonProperty("suspendPostUri")]
public string? SuspendPostUri { get; internal set; }
public string SuspendPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance resume endpoint.
Expand All @@ -90,6 +89,6 @@ public class HttpManagementPayload
/// The HTTP URL for resuming an orchestration instance.
/// </value>
[JsonProperty("resumePostUri")]
public string? ResumePostUri { get; internal set; }
public string ResumePostUri { get; internal set; }
}
}
18 changes: 9 additions & 9 deletions src/Worker.Extensions.DurableTask/HttpManagementPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class HttpManagementPayload
/// The ID of the orchestration instance.
/// </value>
[JsonProperty("id")]
public string Id { get; internal set; }
public string? Id { get; internal set; }

/// <summary>
/// Gets the HTTP GET status query endpoint URL.
Expand All @@ -29,7 +29,7 @@ public class HttpManagementPayload
/// The HTTP URL for fetching the instance status.
/// </value>
[JsonProperty("statusQueryGetUri")]
public string StatusQueryGetUri { get; internal set; }
public string? StatusQueryGetUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST external event sending endpoint URL.
Expand All @@ -38,7 +38,7 @@ public class HttpManagementPayload
/// The HTTP URL for posting external event notifications.
/// </value>
[JsonProperty("sendEventPostUri")]
public string SendEventPostUri { get; internal set; }
public string? SendEventPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance termination endpoint.
Expand All @@ -47,7 +47,7 @@ public class HttpManagementPayload
/// The HTTP URL for posting instance termination commands.
/// </value>
[JsonProperty("terminatePostUri")]
public string TerminatePostUri { get; internal set; }
public string? TerminatePostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance rewind endpoint.
Expand All @@ -56,7 +56,7 @@ public class HttpManagementPayload
/// The HTTP URL for rewinding orchestration instances.
/// </value>
[JsonProperty("rewindPostUri")]
public string RewindPostUri { get; internal set; }
public string? RewindPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP DELETE purge instance history by instance ID endpoint.
Expand All @@ -65,7 +65,7 @@ public class HttpManagementPayload
/// The HTTP URL for purging instance history by instance ID.
/// </value>
[JsonProperty("purgeHistoryDeleteUri")]
public string PurgeHistoryDeleteUri { get; internal set; }
public string? PurgeHistoryDeleteUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance restart endpoint.
Expand All @@ -74,7 +74,7 @@ public class HttpManagementPayload
/// The HTTP URL for restarting an orchestration instance.
/// </value>
[JsonProperty("restartPostUri")]
public string RestartPostUri { get; internal set; }
public string? RestartPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance suspend endpoint.
Expand All @@ -83,7 +83,7 @@ public class HttpManagementPayload
/// The HTTP URL for suspending an orchestration instance.
/// </value>
[JsonProperty("suspendPostUri")]
public string SuspendPostUri { get; internal set; }
public string? SuspendPostUri { get; internal set; }

/// <summary>
/// Gets the HTTP POST instance resume endpoint.
Expand All @@ -92,5 +92,5 @@ public class HttpManagementPayload
/// The HTTP URL for resuming an orchestration instance.
/// </value>
[JsonProperty("resumePostUri")]
public string ResumePostUri { get; internal set; }
public string? ResumePostUri { get; internal set; }
}

0 comments on commit 8bb1601

Please sign in to comment.