summaryrefslogtreecommitdiffstats
path: root/samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-20 22:18:40 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-20 22:18:40 -0800
commit691fc08b3406faecb625922a64430e2a0514766d (patch)
tree3eed4dccd419a4c2c2ec6e4695938408b1aa6cee /samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs
parent335402d6dda7a96acab14e7263ef16e06e637d12 (diff)
downloadDotNetOpenAuth-691fc08b3406faecb625922a64430e2a0514766d.zip
DotNetOpenAuth-691fc08b3406faecb625922a64430e2a0514766d.tar.gz
DotNetOpenAuth-691fc08b3406faecb625922a64430e2a0514766d.tar.bz2
Fixed StyleCop messages.
Diffstat (limited to 'samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs')
-rw-r--r--samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs20
1 files changed, 11 insertions, 9 deletions
diff --git a/samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs b/samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs
index 49649eb..d3201c2 100644
--- a/samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs
+++ b/samples/OAuthAuthorizationServer/Code/HttpHeaderAttribute.cs
@@ -10,6 +10,16 @@
/// </summary>
public class HttpHeaderAttribute : ActionFilterAttribute {
/// <summary>
+ /// Initializes a new instance of the <see cref="HttpHeaderAttribute"/> class.
+ /// </summary>
+ /// <param name="name">The HTTP header name.</param>
+ /// <param name="value">The HTTP header value.</param>
+ public HttpHeaderAttribute(string name, string value) {
+ this.Name = name;
+ this.Value = value;
+ }
+
+ /// <summary>
/// Gets or sets the name of the HTTP Header.
/// </summary>
public string Name { get; set; }
@@ -20,19 +30,11 @@
public string Value { get; set; }
/// <summary>
- /// Initializes a new instance of the <see cref="HttpHeaderAttribute"/> class.
- /// </summary>
- public HttpHeaderAttribute(string name, string value) {
- Name = name;
- Value = value;
- }
-
- /// <summary>
/// Called by the MVC framework after the action result executes.
/// </summary>
/// <param name="filterContext">The filter context.</param>
public override void OnResultExecuted(ResultExecutedContext filterContext) {
- filterContext.HttpContext.Response.AppendHeader(Name, Value);
+ filterContext.HttpContext.Response.AppendHeader(this.Name, this.Value);
base.OnResultExecuted(filterContext);
}
}