9.86 WCF Integration Facility

优质
小牛编辑
127浏览
2023-12-01

WCF Integration facility enables integration with Windows Communication Foundation. It makes services and WCF proxies available as services in your application, lets you use non-default constructor and inject dependencies into your services, adds ability to easily set up your services with extensions, call services asynchronously without needing to use code generation and much more.

Installing the facility

WCF Integration Facility lives in Castle.Facilities.WcfIntegration.dll file distributed as part of Windsor binary package.

If you're using Nuget, you'll have to download it separately using the following command:

Install-Package Castle.WcfIntegrationFacility

After adding reference to the facility, You can add it to the container:

using Castle.Facilities.WcfIntegration;

Container.AddFacility<WcfFacility>();

On the client

Some of the functionality exposed by the facility on the client side of WCF application.

:information_source: Notice that the documentation is still being created and the list is incomplete.

On the server

Some of the functionality exposed by the facility on the service side of WCF application.

On both

Some of the functionality exposed by the facility on both - client and service side of WCF application.

See also