1
0
mirror of synced 2024-11-16 14:53:50 +00:00
Tapeti/Test/FlowEndController.cs
2017-07-25 15:50:38 +02:00

38 lines
696 B
C#

using System;
using Tapeti.Annotations;
using Tapeti.Flow;
namespace Test
{
[MessageController]
[DynamicQueue]
public class FlowEndController
{
private readonly IFlowProvider flowProvider;
public FlowEndController(IFlowProvider flowProvider)
{
this.flowProvider = flowProvider;
}
public IYieldPoint StartFlow(PingMessage message)
{
Console.WriteLine("PingMessage received, call flowProvider.End()");
return Finish();
}
private IYieldPoint Finish()
{
return flowProvider.End();
}
public class PingMessage
{
}
}
}