class documentation
class OperationHandlerMiddleware(ABC):
Middleware for operation handlers.
This should be extended by any operation handler middelware.
| Method | intercept |
Method called for intercepting operation handlers. |
@abstractmethod
def intercept(self, ctx: OperationContext, next: MiddlewareSafeOperationHandler) -> MiddlewareSafeOperationHandler:
ΒΆ
Method called for intercepting operation handlers.
| Parameters | |
ctx:OperationContext | The OperationContext that will be passed to the operation handler. |
next:MiddlewareSafeOperationHandler | The underlying operation handler that this middleware should delegate to. |
| Returns | |
MiddlewareSafeOperationHandler | The new middleware that will be used to invoke
OperationHandler.start or OperationHandler.cancel. |