OpenLiveWriter/utilities/BlogServer/XmlRpc/XmlRpcMethodAttribute.cs

30 lines
573 B
C#
Raw Normal View History

2015-12-09 10:38:46 +00:00
using System;
namespace BlogServer.XmlRpc
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class XmlRpcMethodAttribute : Attribute
{
private readonly string methodName;
public XmlRpcMethodAttribute(string methodName)
{
this.methodName = methodName;
}
public XmlRpcMethodAttribute()
{
this.methodName = null;
}
/// <summary>
/// If null, use the name of the class method to
/// which the attribute is applied.
/// </summary>
public string MethodName
{
get { return methodName; }
}
}
}