Table of Contents

Class NexusServiceHandlerAttribute

Namespace
NexusRpc.Handlers
Assembly
NexusRpc.dll

Mark a class as a service handler. This requires a service type be provided that is an interface with a NexusServiceAttribute attribute. For each NexusOperationAttribute method defined in the given service type, this class must contain the same-named method with a NexusOperationHandlerAttribute attribute and that returns an operation handler to handle that operation.

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class NexusServiceHandlerAttribute : Attribute
Inheritance
NexusServiceHandlerAttribute
Inherited Members

Constructors

NexusServiceHandlerAttribute(Type)

Initializes a new instance of the NexusServiceHandlerAttribute class with the given service type.

public NexusServiceHandlerAttribute(Type serviceType)

Parameters

serviceType Type

Nexus service interface type this implements. Must be an interface with the NexusServiceAttribute attribute.

Properties

ServiceType

Gets the Nexus service interface type.

public Type ServiceType { get; }

Property Value

Type