// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Agents.AI.Workflows;
namespace Microsoft.Agents.AI.DurableTask.Workflows;
///
/// Event raised when an executor requests the workflow to halt via .
///
public sealed class DurableHaltRequestedEvent : WorkflowEvent
{
///
/// Initializes a new instance of the class.
///
/// The ID of the executor that requested the halt.
public DurableHaltRequestedEvent(string executorId) : base($"Halt requested by {executorId}")
{
this.ExecutorId = executorId;
}
///
/// Gets the ID of the executor that requested the halt.
///
public string ExecutorId { get; }
}