Advanced WCF
Upcoming SlideShare
Loading in...5
×
 

Advanced WCF

on

  • 121 views

 

Statistics

Views

Total Views
121
Slideshare-icon Views on SlideShare
121
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Advanced WCF Advanced WCF Presentation Transcript

    • WCF Tips and Tricks
    • Components Contract Behavior Endpoint
    • Streaming • When to use: – Data is too big and the transfer needs to be buffered – Data should be processed by chunks • Limitations: – Supported not in all bindings – Streaming methods can have only one parameter – Session is not supported when streaming data Streaming alternatives? DIY! (do it yourself) You can create several methods that will return data in chunks.
    • Message Contracts • When to use: – You need full control of SOAP messages – You want to pass additional information with response (like security, etc.) – You want to add additional information with request, but don’t want to mess the interface for compatibility purposes – Useful together with streaming option
    • Duplex Contracts sd Use Case Model WCF Client WCF Service GetData() getcallbackchannel() CallDuplexMethod()
    • • When to use: – You need to define two-way communication between client and server – You need to notify client about some event • Limitations: – Duplex behavior is working only within a client session
    • Create WCF client in code. • Why? – More control over client proxy – Want to track changes to the WCF client implementation • How? – Use of ClientBase – ChannelFactory
    • Service Discovery • Announcement endpoints – Useful to notify other clients about service start/stop • Metadata exchange (mex) – Defines endpoint which provides information about service interface • WS-Discovery – Enables service discovery on the network
    • Questions
    • Thanks
    • Useful links: • Service discovery: http://msdn.microsoft.com/en- us/library/dd456791%28v=vs.110%29.aspx • ClientBase: http://msdn.microsoft.com/ru- ru/library/ms576141%28v=vs.110%29.aspx • ChannelFactory: http://msdn.microsoft.com/ru- ru/library/ms734681%28v=vs.110%29.aspx • Duplex services: http://msdn.microsoft.com/ru- ru/library/ms731064%28v=vs.110%29.aspx • Message contract: http://msdn.microsoft.com/ru- ru/library/ms730255%28v=vs.110%29.aspx • Streaming: http://msdn.microsoft.com/en- us/library/ms733742%28v=vs.110%29.aspx