Class NexusServiceAttribute
- Namespace
- NexusRpc
- Assembly
- NexusRpc.dll
Attribute to put on an interface representing the contract of a Nexus service. Interface methods will have the NexusOperationAttribute attribute.
[AttributeUsage(AttributeTargets.Interface, Inherited = false)]
public sealed class NexusServiceAttribute : Attribute
- Inheritance
-
NexusServiceAttribute
- Inherited Members
Constructors
NexusServiceAttribute()
Initializes a new instance of the NexusServiceAttribute class with the default name. See Name.
public NexusServiceAttribute()
NexusServiceAttribute(string)
Initializes a new instance of the NexusServiceAttribute class with the given name.
public NexusServiceAttribute(string name)
Parameters
Properties
Name
Gets the Nexus service name. If this is unset, it defaults to the unqualified type name of this interface. If the first character is a capital "I" followed by another capital letter, the "I" is trimmed when creating the default name.
public string? Name { get; }