azure-servicebus/azure/servicebus/control_client/servicebusservice.py
def with_filter(self, filter_func):
        '''
        Returns a new service which will process requests with the specified
        filter.  Filtering operations can include logging, automatic retrying,
        etc...  The filter is a lambda which receives the HTTPRequest and
        another lambda.  The filter can perform any pre-processing on the
        request, pass it off to the next lambda, and then perform any
        post-processing on the response.
        '''
        res = ServiceBusService(
            service_namespace=self.service_namespace,
            authentication=self.authentication)

        old_filter = self._filter

        def new_filter(request):
            return filter_func(request, old_filter)

        res._filter = new_filter  # pylint: disable=protected-access
        return res
def with_filter(self, filter_func):
        '''
        Returns a new service which will process requests with the specified
        filter.  Filtering operations can include logging, automatic retrying,
        etc...  The filter is a lambda which receives the HTTPRequest and
        another lambda.  The filter can perform any pre-processing on the
        request, pass it off to the next lambda, and then perform any
        post-processing on the response.
        '''
        res = ServiceBusService(
            service_namespace=self.service_namespace,
            authentication=self.authentication)

        old_filter = self._filter

        def new_filter(request):
            return filter_func(request, old_filter)

        res._filter = new_filter  # pylint: disable=protected-access
        return res
def with_filter ( self , filter_func ) : res = ServiceBusService ( service_namespace = self . service_namespace , authentication = self . authentication ) old_filter = self . _filter def new_filter ( request ) : return filter_func ( request , old_filter ) res . _filter = new_filter # pylint: disable=protected-access return res
Returns a new service which will process requests with the specified
        filter.  Filtering operations can include logging, automatic retrying,
        etc...  The filter is a lambda which receives the HTTPRequest and
        another lambda.  The filter can perform any pre-processing on the
        request, pass it off to the next lambda, and then perform any
        post-processing on the response.
Returns a new service which will process requests with the specified filter . Filtering operations can include logging automatic retrying etc ... The filter is a lambda which receives the HTTPRequest and another lambda . The filter can perform any pre - processing on the request pass it off to the next lambda and then perform any post - processing on the response .