I need a custom IOperationInvoker for my service. I think this is working just fine, but I do not particularly like the idea that in order to implement the operation I have to make it a specialty to implement. I can not seem to find this based config on any document (similar to an MessageInspector at that end point)
I created a custom beaver that implements an IEndpointBehavior ApplyDispathBehavior I have the following:
public zero ApplyDispatchBehavior (ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) {foreach (operation at endpointDispatcher.DispatchRuntime.Operations) {operation. Invoker = New MockServiceOperationInvoker () {Invoker = operation.Invoker}; }}
However, the custom invitation does not appear to "stick" changes in life cycle later on they may be getting flawed? If I make a specialty of behavior
Everything works, but I would rather not do that. Does anyone know a better way to implement a custom OperationBInvoker for all methods in a given endpoint?
Many thanks!
Text after "div class =" itemprop = "text">
I think I thought it. By looping through each operation, I can add a behavior to it. I do not know that this is the best way, but it works.
Public class mocking operation: transaction extension, iOperationBehavior, IEndpointBehavior {public voidDispatchBehavior {EndpointDispatcher endpointDispatcher} {foreach (Work Point and Point Contract. ; }}}
Comments
Post a Comment