2019-08-15 12:04:03 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Tapeti.Config;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Flow
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides information about the handler for the flow.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IFlowHandlerContext : IDisposable
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides access to the Tapeti config.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ITapetiConfig Config { get; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An instance of the controller which starts or continues the flow.
|
|
|
|
|
/// </summary>
|
2022-11-23 09:13:38 +01:00
|
|
|
|
object? Controller { get; }
|
2019-08-15 12:04:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Information about the method which starts or continues the flow.
|
|
|
|
|
/// </summary>
|
|
|
|
|
MethodInfo Method { get; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-09-02 16:16:11 +02:00
|
|
|
|
/// Access to the message context if this is a continuated flow.
|
2019-08-15 12:04:03 +02:00
|
|
|
|
/// Will be null when in a starting flow.
|
|
|
|
|
/// </summary>
|
2022-11-23 09:13:38 +01:00
|
|
|
|
IMessageContext? MessageContext { get; }
|
2019-08-15 12:04:03 +02:00
|
|
|
|
}
|
|
|
|
|
}
|