| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | using System.ComponentModel; |
| | 4 | |
|
| | 5 | | namespace IceRpc.Slice; |
| | 6 | |
|
| | 7 | | /// <summary>Represents an attribute that the Slice compiler uses to mark helper methods it generates on Service |
| | 8 | | /// interfaces.</summary> |
| | 9 | | [AttributeUsage(AttributeTargets.Method, Inherited = false)] |
| | 10 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 11 | | public sealed class SliceOperationAttribute : Attribute |
| | 12 | | { |
| | 13 | | /// <summary>Gets the operation name.</summary> |
| | 14 | | /// <value>The operation name.</value> |
| 0 | 15 | | public string Value { get; } |
| | 16 | |
|
| | 17 | | /// <summary>Constructs a Slice operation attribute.</summary> |
| | 18 | | /// <param name="value">The operation name.</param>> |
| 0 | 19 | | public SliceOperationAttribute(string value) => Value = value; |
| | 20 | | } |