class documentation

class OperationHandlerMiddleware(ABC):

View In Hierarchy

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:OperationContextThe OperationContext that will be passed to the operation handler.
next:MiddlewareSafeOperationHandlerThe underlying operation handler that this middleware should delegate to.
Returns
MiddlewareSafeOperationHandlerThe new middleware that will be used to invoke OperationHandler.start or OperationHandler.cancel.