From 73eaf2b3296a646ba3a97efea5158e7d94bd8030 Mon Sep 17 00:00:00 2001 From: Petr Koutny Date: Fri, 6 Sep 2024 15:17:51 +0200 Subject: [PATCH] Moved info about WorkflowAlreadyStartedException into the right position in XML docs (#309) --- src/Temporalio/Workflows/Workflow.cs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/Temporalio/Workflows/Workflow.cs b/src/Temporalio/Workflows/Workflow.cs index fc37e62..d21db64 100644 --- a/src/Temporalio/Workflows/Workflow.cs +++ b/src/Temporalio/Workflows/Workflow.cs @@ -663,6 +663,7 @@ public static async Task ExecuteChildWorkflowAsync( /// started. Use /// to check if it's a cancellation either way. /// + /// Throw if an ID is given in the options, but it is already running. This exception is stored into the returned task. public static async Task ExecuteChildWorkflowAsync( string workflow, IReadOnlyCollection args, ChildWorkflowOptions? options = null) { @@ -687,6 +688,7 @@ public static async Task ExecuteChildWorkflowAsync( /// started. Use /// to check if it's a cancellation either way. /// + /// Throw if an ID is given in the options, but it is already running. This exception is stored into the returned task. public static async Task ExecuteChildWorkflowAsync( string workflow, IReadOnlyCollection args, ChildWorkflowOptions? options = null) { @@ -1063,14 +1065,11 @@ public static Task RunTaskAsync( /// Workflow options. /// The child workflow handle once started. /// - /// The task can throw a if an ID - /// is given in the options but it is already running. - /// - /// /// Using an already-cancelled token may give a different exception than cancelling after /// started. Use /// to check if it's a cancellation either way. /// + /// Throw if an ID is given in the options, but it is already running. This exception is stored into the returned task. public static Task> StartChildWorkflowAsync( Expression>> workflowRunCall, ChildWorkflowOptions? options = null) @@ -1088,14 +1087,11 @@ public static Task> StartChildWorkflowAs /// Workflow options. /// The child workflow handle once started. /// - /// The task can throw a if an ID - /// is given in the options but it is already running. - /// - /// /// Using an already-cancelled token may give a different exception than cancelling after /// started. Use /// to check if it's a cancellation either way. /// + /// Throw if an ID is given in the options, but it is already running. This exception is stored into the returned task. public static async Task> StartChildWorkflowAsync( Expression> workflowRunCall, ChildWorkflowOptions? options = null) { @@ -1113,14 +1109,11 @@ public static async Task> StartChildWorkflowAsync /// Workflow options. /// The child workflow handle once started. /// - /// The task can throw a if an ID - /// is given in the options but it is already running. - /// - /// /// Using an already-cancelled token may give a different exception than cancelling after /// started. Use /// to check if it's a cancellation either way. /// + /// Throw if an ID is given in the options, but it is already running. This exception is stored into the returned task. public static async Task StartChildWorkflowAsync( string workflow, IReadOnlyCollection args, ChildWorkflowOptions? options = null) => await Context.StartChildWorkflowAsync(