Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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;
     }
 }
Esempio n. 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;
            }
        }
Esempio n. 5
0
 public static bool Impl(IETag e, IContext c)
 {
     return(Called = true);
 }
 public static bool Impl(IETag e, IContext c)
 {
     return Called = true;
 }