Injustice - Developers Among Us (SciFiDevCon 2024)
Wcf hosting and endpoints
1. Introducing the ABCs of
Windows Communication
Windows Communication Foundation
Hosting & Endpoints
Winter 2006
2. Introducing the ABCs of
Windows Communication
WCF Hosting & Endpoints
Agenda
Address, Binding, Contract & Hosting
WCF Endpoints
Architecture
Hosting Options
basicHttpBinding Demo
netTcpBinding & netMsmqBinding Demo
3. Introducing the ABCs of
Windows Communication
About Me
Microsoft Certified Professional .NET, MCAD, .NET
7+ years professional experience developing Microsoft solutions for the
retail, financial services and environmental, health & safety industries.
Primary focus on Enterprise Application Integration architectures:
.NET Framework
BizTalk Server
Host Integration Server
4. Introducing the ABCs of
Windows Communication
Address, Binding, Contract & Hosting
n Address uniquely identifies a service.
rovides the transport protocol, name of target
machine (host) and port if applicable.
xpressed as an explicit path or URI:
ransport]://[machine][:optional port]
ttp://localhost
ttp://localhost:8081
ttp://localhost:8081/Service
et.tcp://localhost:8082/Service
et.pipe://localhost/Pipe
All services expose a Contract.
WCF uses 3 types of contracts:
Service Contract – Exposes the service.
Operation Contract- Exposes the service members.
Data Contract – Describes service parameters.
Fault Contracts – Defines error handling semantics.
Bindings provide “canned” policies that implement
the WCF features required to support the design
goals of the service.
Some common bindings include:
basicHttpBinding
netTcpBinding
wsHttpBinding
netMsqmqBinding
WCF services must be hosted by a Windows
Process (host process).
Hosting options include:
IIS 5 & 6
IIS 7 & Windows Activation Service (WAS)
SmartClient, Console or Windows Service (also
called “Self-Hosting”)
The ABCs of Windows Communication Foundation:
5. Introducing the ABCs of
Windows Communication
WCF Endpoints
WCF Services are deployed, discovered and consumed as endpoints.
8. Introducing the ABCs of
Windows Communication
Demos
IIS Hosting with basicHttpBinding
Self Hosting with multiple endpoints
9. Introducing the ABCs of
Windows Communication
Questions?
References
IDesign WCF Master Class, Microsoft Silicon Valley Campus, San Jose, CA.
June 2006.
IDesign WCF Standard
Programming WCF Services, Juval Lowy, 2007 O’Reilly Press.
10. Introducing the ABCs of
Windows Communication
Questions?
References
IDesign WCF Master Class, Microsoft Silicon Valley Campus, San Jose, CA.
June 2006.
IDesign WCF Standard
Programming WCF Services, Juval Lowy, 2007 O’Reilly Press.
Editor's Notes
A little bit about myself.
Discuss and illustrate client, proxy and service diagrams. Talk about interception and how it is key to supporting the WCF features such as reliability, transactions, etc.
Emphasise that WCF is still in early adopter mode, so hosting options currently limited to IIS and self-host.
Go into pros and cons so to speak of IIS and self-hosting and finish up with WAS (which is why Vista is an important release for all of us).