2016-12-11 14:08:58 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Config
|
|
|
|
|
{
|
|
|
|
|
public delegate object ValueFactory(IMessageContext context);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public interface IBindingContext
|
|
|
|
|
{
|
|
|
|
|
Type MessageClass { get; set; }
|
|
|
|
|
IReadOnlyList<IBindingParameter> Parameters { get; }
|
2016-12-14 19:28:17 +00:00
|
|
|
|
|
|
|
|
|
void Use(IMessageMiddleware middleware);
|
2016-12-11 14:08:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public interface IBindingParameter
|
|
|
|
|
{
|
|
|
|
|
ParameterInfo Info { get; }
|
|
|
|
|
bool HasBinding { get; }
|
|
|
|
|
|
|
|
|
|
void SetBinding(ValueFactory valueFactory);
|
|
|
|
|
}
|
|
|
|
|
}
|