1
0
mirror of synced 2024-11-25 04:03:09 +01:00
Tapeti/Tapeti.DataAnnotations/DataAnnotationsMiddleware.cs

22 lines
542 B
C#

using System.Collections.Generic;
using Tapeti.Config;
namespace Tapeti.DataAnnotations
{
public class DataAnnotationsMiddleware : ITapetiExtension
{
public void RegisterDefaults(IDependencyContainer container)
{
}
public IEnumerable<object> GetMiddleware(IDependencyResolver dependencyResolver)
{
return new object[]
{
new DataAnnotationsMessageMiddleware(),
new DataAnnotationsPublishMiddleware()
};
}
}
}