public override void Spin(IRotorContext context)
        {
            var retriever = new MetadataAttributeRetriever();

            var list = retriever.GetTypesOfAllMetadataAttributeHandlers()
                       .Select(type => new Mapping
            {
                AttributeType = GetTheGenericValidatorType(type),
                HandlerType   = type
            }).ToList();

            ModelMetadataProviders.Current = new CustomMetadataProvider(context.ServiceLocator, list);
        }
        public override void Spin(IRotorContext context)
        {
            var retriever = new MetadataAttributeRetriever();

            var list = retriever.GetTypesOfAllMetadataAttributeHandlers()
                .Select(type => new Mapping
                                    {
                                        AttributeType = GetTheGenericValidatorType(type),
                                        HandlerType = type
                                    }).ToList();

            ModelMetadataProviders.Current = new CustomMetadataProvider(context.ServiceLocator, list);
        }