コード例 #1
0
 public SmartContextFacade(Controller ctrl,Func<dynamic> modelIdentifier,Type validationFailedPolicy,IValidationFailedPolicyFactory factory)
 {
     ctrl.MustNotBeNull();
     modelIdentifier.MustNotBeNull();
     validationFailedPolicy.MustNotBeNull();
     factory.MustNotBeNull();
     _ctrl = ctrl;
     _modelIdentifier = modelIdentifier;
     _validationFailedPolicy = validationFailedPolicy;
     IsPost = ctrl.HttpContext.Request.IsPost();
     _factory = factory;
 }
コード例 #2
0
 public SmartContextFacade(Controller ctrl, Func <dynamic> modelIdentifier, Type validationFailedPolicy, IValidationFailedPolicyFactory factory)
 {
     ctrl.MustNotBeNull();
     modelIdentifier.MustNotBeNull();
     validationFailedPolicy.MustNotBeNull();
     factory.MustNotBeNull();
     _ctrl                   = ctrl;
     _modelIdentifier        = modelIdentifier;
     _validationFailedPolicy = validationFailedPolicy;
     IsPost                  = ctrl.HttpContext.Request.IsPost();
     _factory                = factory;
 }