@@ -15,8 +15,6 @@ namespace Cleipnir.Flows;
1515public interface IBaseFlows
1616{
1717 public static abstract Type FlowType { get ; }
18-
19- public Task RouteMessage < T > ( T message , string correlationId , string ? idempotencyKey = null ) where T : class ;
2018}
2119
2220public abstract class BaseFlows < TFlow > : IBaseFlows where TFlow : notnull
@@ -44,8 +42,6 @@ protected static Action<TFlow, Workflow> CreateWorkflowSetter()
4442 var setter = lambdaExpr . Compile ( ) ;
4543 return setter ;
4644 }
47-
48- public abstract Task RouteMessage < T > ( T message , string correlationId , string ? idempotencyKey = null ) where T : class ;
4945}
5046
5147public class Flows < TFlow > : BaseFlows < TFlow > where TFlow : Flow
@@ -143,17 +139,6 @@ public Task<Scheduled> Schedule(FlowInstance instanceId, InitialState? initialSt
143139 /// <returns>A task which will complete when the flow has been persisted</returns>
144140 public Task ScheduleIn ( FlowInstance instanceId , TimeSpan delay ) => _registration . ScheduleIn ( instanceId . Value , delay ) ;
145141
146- /// <summary>
147- /// Route a message to the flow with registered correlation id
148- /// </summary>
149- /// <param name="message">Message to be delivered to the flow</param>
150- /// <param name="correlationId">Correlation id by which the flow is resolved</param>
151- /// <param name="idempotencyKey">Optional idempotency key to de-duplicate messages</param>
152- /// <typeparam name="T">Message type</typeparam>
153- /// <returns>A task which will complete when the message has been persisted</returns>
154- public override Task RouteMessage < T > ( T message , string correlationId , string ? idempotencyKey = null )
155- => _registration . RouteMessage ( message , correlationId , idempotencyKey ) ;
156-
157142 /// <summary>
158143 /// Schedule multiple flows at once
159144 /// Execution of flows will be divided between the replicas
@@ -301,17 +286,6 @@ public Task ScheduleIn(
301286 TimeSpan delay
302287 ) => _registration . ScheduleIn ( instanceId . Value , param , delay ) ;
303288
304- /// <summary>
305- /// Route a message to the flow with registered correlation id
306- /// </summary>
307- /// <param name="message">Message to be delivered to the flow</param>
308- /// <param name="correlationId">Correlation id by which the flow is resolved</param>
309- /// <param name="idempotencyKey">Optional idempotency key to de-duplicate messages</param>
310- /// <typeparam name="T">Message type</typeparam>
311- /// <returns>A task which will complete when the message has been persisted</returns>
312- public override Task RouteMessage < T > ( T message , string correlationId , string ? idempotencyKey = null )
313- => _registration . RouteMessage ( message , correlationId , idempotencyKey ) ;
314-
315289 /// <summary>
316290 /// Emit interrupt signal to flows
317291 /// Execution of suspended flows will be resumed. Already executing flows will be restarted on suspension.
@@ -455,17 +429,6 @@ public Task ScheduleIn(
455429 TimeSpan delay
456430 ) => _registration . ScheduleIn ( instanceId . Value , param , delay ) ;
457431
458- /// <summary>
459- /// Route a message to the flow with registered correlation id
460- /// </summary>
461- /// <param name="message">Message to be delivered to the flow</param>
462- /// <param name="correlationId">Correlation id by which the flow is resolved</param>
463- /// <param name="idempotencyKey">Optional idempotency key to de-duplicate messages</param>
464- /// <typeparam name="T">Message type</typeparam>
465- /// <returns>A task which will complete when the message has been persisted</returns>
466- public override Task RouteMessage < T > ( T message , string correlationId , string ? idempotencyKey = null )
467- => _registration . RouteMessage ( message , correlationId , idempotencyKey ) ;
468-
469432 /// <summary>
470433 /// Emit interrupt signal to flows
471434 /// Execution of suspended flows will be resumed. Already executing flows will be restarted on suspension.
0 commit comments