using System.Reflection;
using Elsa.Workflows.Contracts;
namespace Elsa.Samples.AspNet.CustomUIHandler;
///
/// Configures the specified property to refresh the UI when the property value changes.
///
public class RefreshUIHandler : IPropertyUIHandler
{
public ValueTask> GetUIPropertiesAsync(PropertyInfo propertyInfo, object? context, CancellationToken cancellationToken = default)
{
IDictionary result = new Dictionary
{
{ "Refresh", true }
};
return ValueTask.FromResult(result);
}
}