public RestSnapshot(IOidStrategy oidStrategy, TypeActionInvokeContext typeActionInvokeContext, HttpRequestMessage req, RestControlFlags flags)
     : this(oidStrategy, req, true)
 {
     populator = () => {
         Representation = TypeActionInvokeRepresentation.Create(oidStrategy, req, typeActionInvokeContext, flags);
         SetHeaders();
     };
 }
Exemplo n.º 2
0
        public RestSnapshot(TypeActionInvokeContext typeActionInvokeContext, HttpRequestMessage req, RestControlFlags flags)
            : this(req, true)
        {
            logger.DebugFormat("RestSnapshot:{0}", typeActionInvokeContext.GetType().FullName);

            populator = () => {
                representation = TypeActionInvokeRepresentation.Create(req, typeActionInvokeContext, flags);
                SetHeaders();
            };
        }