using System; namespace Stratum { /// /// Required to expose a method to the Stratum service. /// [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)] public sealed class StratumMethodAttribute : Attribute { readonly string stratumMethodName; /// /// Required to expose a method to the Stratum service. /// /// Lets you specify the method name as it will be referred to by JsonRpc. public StratumMethodAttribute(string MethodName = "") { this.stratumMethodName = MethodName; } public string StratumMethodName { get { return stratumMethodName; } } } }