Use nvc-cce-2.coinomi.net server for testing.
[StratumLibrary.git] / StratumLibrary / Attributes.cs
1 \feffusing System;\r
2 \r
3 namespace Stratum\r
4 {\r
5     /// <summary>\r
6     /// Required to expose a method to the Stratum service.\r
7     /// </summary>\r
8     [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]\r
9     public sealed class StratumMethodAttribute : Attribute\r
10     {\r
11         readonly string stratumMethodName;\r
12 \r
13         /// <summary>\r
14         /// Required to expose a method to the Stratum service.\r
15         /// </summary>\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
18         {\r
19             this.stratumMethodName = MethodName;\r
20         }\r
21 \r
22         public string StratumMethodName\r
23         {\r
24             get { return stratumMethodName; }\r
25         }\r
26     }\r
27 }\r