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