Namespace NexusRpc.Handlers
Classes
- Handler
Primary Handler implementation that works with a collection of ServiceHandlerInstances, a serializer, and middleware.
- HandlerContent
Content that can be used in a handler. Can be streaming or fixed set of bytes.
- HandlerException
Thrown from a handler for any unexpected error.
- NexusOperationHandlerAttribute
Mark a method as an "operation handler factory" for an operation on a class with a NexusServiceHandlerAttribute attribute. A method with this attribute must exist for every operation defined on a NexusServiceAttribute interface.
- NexusServiceHandlerAttribute
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.
- OperationCancelContext
Context provided when cancel is called.
- OperationContext
Base class for contexts provided on different operation calls.
- OperationFetchInfoContext
Context provided when fetch info is called.
- OperationFetchResultContext
Context provided when fetch result is called.
- OperationHandler
Helpers for IOperationHandler<TInput, TResult>s.
- OperationStartContext
Context provided when start is called.
- OperationStartResult
Helper for results of an operation start.
- OperationStartResult<T>
Representation of a start result.
- ServiceHandlerInstance
Representation of a service handler instance with instantiated operation handlers. Users should use FromInstance(object) to get an instance.
Structs
- NoValue
Representation of no input/return type for an operation handler. This is the same as
typeof(void)(if not using generics).
Interfaces
- IHandler
Interface for handling all inbound operations regardless of service. The primary implementation is at Handler.
- IOperationHandler<TInput, TResult>
Handler for an operation.
- IOperationHandler<TInput, TResult>.IWrapper
Support for accessing the underlying handler for when handlers are wrapped.
- IOperationMiddleware
Middleware for intercepting operations.
Enums
- HandlerErrorRetryBehavior
Retry behavior of a HandlerException.
- HandlerErrorType
Error type of a HandlerException.