1
0
mirror of synced 2024-11-16 14:53:50 +00:00
Tapeti/Test/FlowEndController.cs

38 lines
696 B
C#
Raw Normal View History

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
{
}
}
}