Castle.Facilities.WcfIntegration.Tests.Behaviors.UnitOfworkEndPointBehavior.ApplyDispatchBehavior C# (CSharp) Method

ApplyDispatchBehavior() public method

public ApplyDispatchBehavior ( ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint
endpointDispatcher System.ServiceModel.Dispatcher.EndpointDispatcher
return void
		public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
		{
			foreach (DispatchOperation operation in endpointDispatcher.DispatchRuntime.Operations)
			{
				operation.CallContextInitializers.Add(new UnitOfWorkCallContextInitializer());
			}
		}