public RestSnapshot(IOidStrategy oidStrategy, MenuContextFacade menus, HttpRequestMessage req, RestControlFlags flags) : this(oidStrategy, req, true) { populator = () => { Representation = ListRepresentation.Create(oidStrategy, menus, req, flags); SetHeaders(); }; }
public RestSnapshot(IOidStrategy oidStrategy, ListContextFacade listContext, HttpRequest req, RestControlFlags flags) : this(oidStrategy, req, true) { populator = logger => { Representation = ListRepresentation.Create(oidStrategy, listContext, req, flags); SetHeaders(logger); }; }
public RestSnapshot(ListContextSurface listContext, HttpRequestMessage req, RestControlFlags flags) : this(req, true) { logger.DebugFormat("RestSnapshot:ServicesList"); populator = () => { representation = ListRepresentation.Create(listContext, req, flags); SetHeaders(); }; }
public RestSnapshot(IOidStrategy oidStrategy, IMenuFacade[] menus, HttpRequestMessage req, RestControlFlags flags) : this(oidStrategy, req, true) { logger.DebugFormat("RestSnapshot:MenuList"); populator = () => { representation = ListRepresentation.Create(oidStrategy, menus, req, flags); SetHeaders(); }; }
public RestSnapshot(INakedObjectSpecificationSurface[] specs, HttpRequestMessage req, RestControlFlags flags) : this(req, true) { logger.DebugFormat("RestSnapshot:TypeList"); populator = () => { representation = ListRepresentation.Create(specs, req, flags); SetHeaders(); }; }