Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

27 lines
626 B
Plaintext

<%@ Application Language="C#" %>
<script RunAt="server">
public override string GetOutputCacheProviderName (HttpContext context)
{
if (context == null)
throw new ArgumentNullException ("context");
HttpRequest req = context.Request;
if (req == null)
throw new InvalidOperationException ("No request found.");
switch (req.QueryString["ocp"]) {
case "InMemory":
return "TestInMemoryProvider";
case "AnotherInMemory":
return "TestAnotherInMemoryProvider";
case "invalid":
return "NoSuchProviderFound";
default:
return base.GetOutputCacheProviderName (context);
}
}
</script>