Example #1
0
 public RestSnapshot(ActionContextSurface actionContext, HttpRequestMessage req, RestControlFlags flags)
     : this(actionContext, req, true)
 {
     populator = () => {
         representation = ActionRepresentation.Create(req, actionContext, flags);
         SetHeaders();
     };
 }
Example #2
0
 public RestSnapshot(IOidStrategy oidStrategy, ActionContextFacade actionContext, HttpRequestMessage req, RestControlFlags flags)
     : this(oidStrategy, actionContext, req, true)
 {
     populator = () => {
         representation = ActionRepresentation.Create(oidStrategy, req, actionContext, flags);
         SetHeaders();
     };
 }