Castle.Facilities.WcfIntegration.WcfEndpointExtensions.Install C# (CSharp) Method

Install() public method

public Install ( ServiceEndpoint endpoint, bool withContract, IKernel kernel, IWcfBurden burden ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint
withContract bool
kernel IKernel
burden IWcfBurden
return void
		public void Install(ServiceEndpoint endpoint, bool withContract, IKernel kernel, IWcfBurden burden)
		{
			WcfUtils.AddBehaviors(kernel, scope, endpoint.Behaviors, burden);

			if (withContract)
			{
				WcfUtils.AddBehaviors(kernel, scope, endpoint.Contract.Behaviors, burden);

				foreach (var operation in endpoint.Contract.Operations)
				{
					WcfUtils.AddBehaviors(kernel, scope, operation.Behaviors, burden);
				}
			}
		}