2017-02-07 17:22:28 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Config
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A bundling mechanism for Tapeti extension packages. Allows the calling application to
|
|
|
|
|
/// pass all the necessary components to TapetiConfig.Use in one call.
|
|
|
|
|
/// </summary>
|
2017-02-07 17:22:28 +00:00
|
|
|
|
public interface ITapetiExtension
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Allows the extension to register default implementations into the IoC container.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="container"></param>
|
2017-02-07 17:22:28 +00:00
|
|
|
|
void RegisterDefaults(IDependencyContainer container);
|
|
|
|
|
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Produces a list of middleware implementations to be passed to the TapetiConfig.Use method.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dependencyResolver"></param>
|
|
|
|
|
/// <returns>A list of middleware implementations or null if no middleware needs to be registered</returns>
|
2017-02-07 17:22:28 +00:00
|
|
|
|
IEnumerable<object> GetMiddleware(IDependencyResolver dependencyResolver);
|
|
|
|
|
}
|
|
|
|
|
}
|