6 /// Required to expose a method to the Stratum service.
\r
8 [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
\r
9 public sealed class StratumMethodAttribute : Attribute
\r
11 readonly string stratumMethodName;
\r
14 /// Required to expose a method to the Stratum service.
\r
16 /// <param name="stratumMethodName">Lets you specify the method name as it will be referred to by JsonRpc.</param>
\r
17 public StratumMethodAttribute(string MethodName = "")
\r
19 this.stratumMethodName = MethodName;
\r
22 public string StratumMethodName
\r
24 get { return stratumMethodName; }
\r