| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | using System.ComponentModel; |
| | 4 | |
|
| | 5 | | namespace IceRpc.Protobuf; |
| | 6 | |
|
| | 7 | | /// <summary>Represents an attribute that protoc-gen-icerpc-csharp applies to abstract methods in Service interfaces. |
| | 8 | | /// </summary> |
| | 9 | | [AttributeUsage(AttributeTargets.Method, Inherited = false)] |
| | 10 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 11 | | public sealed class ProtobufMethodAttribute : Attribute |
| | 12 | | { |
| | 13 | | /// <summary>Gets the method name. It corresponds to the name of the rpc method in the Protobuf file, with the |
| | 14 | | /// same spelling and the same case.</summary> |
| | 15 | | /// <value>The method name.</value> |
| 0 | 16 | | public string Value { get; } |
| | 17 | |
|
| | 18 | | /// <summary>Constructs a Protobuf method attribute.</summary> |
| | 19 | | /// <param name="value">The method name.</param>> |
| 0 | 20 | | public ProtobufMethodAttribute(string value) => Value = value; |
| | 21 | | } |