Visual Studio Feeds English |
- Review – InRule: A Business Rules Management System for .NET
- Working with LiveTiles in Metro Applications
- Psychowalkman app Review
- MegaVideo For WP7 Review
- Using FluentValidation with FubuMvc
- Using the Microsoft Codename “Social Analytics” API with Excel PowerPivot and Visual Studio 2010
- Windows Azure SDK Error when launching compute emulator - Encountered an unexpected error ...
- Getting started with the Azure Hosted TFS (aka TFSPreview): Creating a New Team Project
- The Peter-Principled Pointy-Haired Bureaucrat
- Episode 14 of Visual Studio Toolbox (Analyzing Your Code) is now live
| Review – InRule: A Business Rules Management System for .NET Posted: 02 Nov 2011 01:25 PM PDT |
| Working with LiveTiles in Metro Applications Posted: 02 Nov 2011 01:10 PM PDT |
| Posted: 02 Nov 2011 12:09 PM PDT |
| Posted: 02 Nov 2011 12:09 PM PDT |
| Using FluentValidation with FubuMvc Posted: 02 Nov 2011 11:54 AM PDT Create the validation behavior public class ValidationBehaviour : BasicBehavior where T : class { private readonly IContinuationDirector continuationDirector; private readonly BehaviorGraph behaviorGraph; private readonly IFubuRequest fubuRequest; private readonly IValidator validator; public ValidationBehaviour(IContinuationDirector continuationDirector, BehaviorGraph behaviorGraph, IFubuRequest fubuRequest, IValidator validator) : base(PartialBehavior.Ignored) { this.continuationDirector = continuationDirector; this.behaviorGraph = behaviorGraph; this.fubuRequest = fubuRequest; this.validator = validator; } protected override DoNext performInvoke() { var inputModel = fubuRequest.Get(); var validationResult = validator.Validate(inputModel); if (validationResult.IsValid) { return DoNext.Continue; } fubuRequest.Set(validationResult); var actionCall = GetActionCallFromBehaviorGraph(); continuationDirector.TransferToCall(actionCall); return DoNext.Stop; } private ActionCall GetActionCallFromBehaviorGraph() { return behaviorGraph .Behaviors .Where(chain => chain.FirstCall().HandlerType.Namespace == typeof(T).Namespace && chain.Route.AllowedHttpMethods.Contains(WebRequestMethods.Http.Get)) .Select(chain => chain.FirstCall()) .First(); } } Tell FubuMvc when to use the validation behavior public class ValidationConfiguration IConfigurationAction public void Configure(BehaviorGraph |
| Using the Microsoft Codename “Social Analytics” API with Excel PowerPivot and Visual Studio 2010 Posted: 02 Nov 2011 11:39 AM PDT |
| Windows Azure SDK Error when launching compute emulator - Encountered an unexpected error ... Posted: 02 Nov 2011 11:23 AM PDT |
| Getting started with the Azure Hosted TFS (aka TFSPreview): Creating a New Team Project Posted: 02 Nov 2011 10:36 AM PDT |
| The Peter-Principled Pointy-Haired Bureaucrat Posted: 02 Nov 2011 09:51 AM PDT |
| Episode 14 of Visual Studio Toolbox (Analyzing Your Code) is now live Posted: 02 Nov 2011 09:36 AM PDT |
| You are subscribed to email updates from VSF RSS English To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |
Комментариев нет:
Отправить комментарий