elsa-core/src/modules/Elsa.Http/Contracts/IRouteTable.cs
Sipke Schoorstra 366ce2fabd Normalize routes
This fixes an issue where routes are stored in an inconsistent format, potentially breaking workflow HTTP resumption due to bookmark hash mismatches.
2023-10-20 09:51:56 +02:00

33 lines
936 B
C#

using System.Collections.Generic;
namespace Elsa.Http.Contracts;
/// <summary>
/// Stores a list of all routes provided by <see cref="HttpEndpoint"/> activities.
/// </summary>
public interface IRouteTable : IEnumerable<string>
{
/// <summary>
/// Adds a route to the table.
/// </summary>
/// <param name="route">The route to add.</param>
void Add(string route);
/// <summary>
/// Removes a route from the table.
/// </summary>
/// <param name="route">The route to remove.</param>
void Remove(string route);
/// <summary>
/// Adds a range of routes to the table.
/// </summary>
/// <param name="routes">The routes to add.</param>
void AddRange(IEnumerable<string> routes);
/// <summary>
/// Removes a range of routes from the table.
/// </summary>
/// <param name="routes">The routes to remove.</param>
void RemoveRange(IEnumerable<string> routes);
}