예제 #1
0
        private SendAfterEndpointEventConfiguration CallsInternal(VoidDelegate voidDelegate)
        {
            var sequence = new TriggeredMessageSequence();
            var trigger  = new InvocationTriggeringSequenceOfEvents(_invocationMatcher, sequence);

            _wcfProxy.AddInvocation(trigger, voidDelegate);

            return(new SendAfterEndpointEventConfiguration(sequence, _service));
        }
예제 #2
0
        private SendAfterEndpointEventConfiguration ReturnsInternal(IInvocationReturnValueProducer returnValueProducer)
        {
            var sequence = new TriggeredMessageSequence();
            var trigger  = new InvocationTriggeringSequenceOfEvents(_invocationMatcher, sequence);

            _wcfProxy.AddInvocation(trigger, returnValueProducer);

            return(new SendAfterEndpointEventConfiguration(sequence, _service));
        }