public RestSnapshot(IOidStrategy oidStrategy, PropertyContextFacade propertyContext, HttpRequestMessage req, RestControlFlags flags)
     : this(oidStrategy, req, true)
 {
     populator = () => {
         Representation = PromptRepresentation.Create(oidStrategy, propertyContext, req, flags);
         SetHeaders();
     };
 }
 public RestSnapshot(IOidStrategy oidStrategy, ParameterContextFacade parmContext, HttpRequest req, RestControlFlags flags)
     : this(oidStrategy, req, true)
 {
     populator = logger => {
         Representation = PromptRepresentation.Create(oidStrategy, parmContext, req, flags);
         SetHeaders(logger);
     };
 }
Esempio n. 3
0
 public RestSnapshot(ParameterContextSurface parmContext, ListContextSurface listContext, HttpRequestMessage req, RestControlFlags flags)
     : this(req, true)
 {
     logger.DebugFormat("RestSnapshot:parameterprompt");
     populator = () => {
         representation = PromptRepresentation.Create(parmContext, listContext, req, flags);
         SetHeaders();
     };
 }
Esempio n. 4
0
 public RestSnapshot(IOidStrategy oidStrategy, PropertyContextFacade propertyContext, ListContextFacade listContext, HttpRequestMessage req, RestControlFlags flags)
     : this(oidStrategy, req, true)
 {
     logger.DebugFormat("RestSnapshot:propertyprompt");
     populator = () => {
         representation = PromptRepresentation.Create(oidStrategy, propertyContext, listContext, req, flags);
         SetHeaders();
     };
 }