public RestSnapshot(IOidStrategy oidStrategy, IDictionary <string, string> capabilities, HttpRequestMessage req, RestControlFlags flags)
     : this(oidStrategy, req, true)
 {
     populator = () => {
         Representation = VersionRepresentation.Create(oidStrategy, req, capabilities, flags);
         SetHeaders();
     };
 }
示例#2
0
        public RestSnapshot(IDictionary <string, string> capabilities, HttpRequestMessage req, RestControlFlags flags)
            : this(req, true)
        {
            logger.DebugFormat("RestSnapshot:Version");

            populator = () => {
                representation = VersionRepresentation.Create(req, capabilities, flags);
                SetHeaders();
            };
        }