示例#1
3
 /// <summary>
 /// This method supports the framework directly and should not be used from your code
 /// </summary>
 /// <param name="handler">The handler.</param>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 public static void Impl(IETag handler, IContext context)
 {
     if (!string.IsNullOrWhiteSpace(handler.OutputETag))
     {
         context.Response.SetETag(handler.OutputETag);
     }
 }
示例#2
0
 /// <summary>
 /// This method supports the framework directly and should not be used from your code
 /// </summary>
 /// <param name="handler">The handler.</param>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 public static void Impl(IETag handler, IContext context)
 {
     if (!string.IsNullOrWhiteSpace(handler.OutputETag))
     {
         context.Response.SetETag(handler.OutputETag);
     }
 }
示例#3
0
 /// <summary>
 /// This method supports the framework directly and should not be used from your code
 /// </summary>
 /// <param name="handler">The handler.</param>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 public static void Impl(IETag handler, IContext context)
 {
     var etag = context.Request.Headers["ETag"].FirstOrDefault();
     if (!string.IsNullOrWhiteSpace(etag))
     {
         handler.InputETag = etag;
     }
 }
示例#4
0
        /// <summary>
        /// This method supports the framework directly and should not be used from your code
        /// </summary>
        /// <param name="handler">The handler.</param>
        /// <param name="context">The context.</param>
        /// <returns></returns>
        public static void Impl(IETag handler, IContext context)
        {
            if (!context.Request.Headers.ContainsKey("ETag"))
            {
                return;
            }
            var etag = context.Request.Headers["ETag"].FirstOrDefault();

            if (!string.IsNullOrWhiteSpace(etag))
            {
                handler.InputETag = etag;
            }
        }
示例#5
0
 public static bool Impl(IETag e, IContext c)
 {
     return(Called = true);
 }
 public static bool Impl(IETag e, IContext c)
 {
     return Called = true;
 }