|
C# 2008 Programmer's ReferenceWCF supports three communication models (also known as messaging patterns): ? Request/response ? One-way (simplex) ? Two-way (duplex) The one-way messaging pattern allows clients to fire off a request and forget about it; no response is needed from the service. The two-way messaging pattern allows both the service and the client to send and receive messages. Hosting Web Services As mentioned earlier, WCF services can be hosted using different forms: ? Web Servers — IIS; similar to Web Services ? Executable — Console application, Windows Forms, WPF, and so on ? Windows Service — Runs in the background ? Windows Activation Service (WAS) — Simpler version of IIS In the earlier example, the WCF service is hosted by the WCF Service Host (see Figure 20-19), a utility provided by Visual Studio 2008. Figure 20-19 If you host a WCF service using an executable or Windows service, that WCF service is said to be self-hosted. Building WCF Services This section explores more sophisticated WCF services that illustrate the various theories presented earlier ...» | Код для вставки книги в блог HTML
phpBB
текст
|
|