Mark van Renswoude
bcdb376256
Added test for publish overflows Removed support for Unity Container Changed third party package references to ranges Fixed XML documentation
27 lines
692 B
C#
27 lines
692 B
C#
using System.Collections.Generic;
|
|
using Tapeti.Config;
|
|
|
|
namespace Tapeti.DataAnnotations
|
|
{
|
|
/// <summary>
|
|
/// Provides the DataAnnotations validation middleware.
|
|
/// </summary>
|
|
public class DataAnnotationsExtension : ITapetiExtension
|
|
{
|
|
/// <inheritdoc />
|
|
public void RegisterDefaults(IDependencyContainer container)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IEnumerable<object> GetMiddleware(IDependencyResolver dependencyResolver)
|
|
{
|
|
return new object[]
|
|
{
|
|
new DataAnnotationsMessageMiddleware(),
|
|
new DataAnnotationsPublishMiddleware()
|
|
};
|
|
}
|
|
}
|
|
}
|