WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric
Upcoming SlideShare
Loading in...5
×
 

WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric

on

  • 2,755 views

This is from my Tech-Ed Africa 2010 talk. For more information see: http://www.sadev.co.za/content/teched-africa-2010-slides-scripts-and-demos-my-talks ...

This is from my Tech-Ed Africa 2010 talk. For more information see: http://www.sadev.co.za/content/teched-africa-2010-slides-scripts-and-demos-my-talks

This session looks at what is new in WCF 4 to make our lives easier and how AppFabric brings that all together and makes it easier to deploy and manage.

Statistics

Views

Total Views
2,755
Views on SlideShare
2,155
Embed Views
600

Actions

Likes
0
Downloads
62
Comments
0

1 Embed 600

http://www.sadev.co.za 600

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

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

WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric Presentation Transcript

  • Robert MacLean
    Technology Specialist
    BB&D
    WCF Made Easy with .NET 4 & Windows Server AppFabric
  • Who am I?
    Robert MacLean
    Microsoft ALM MVP
    Microsoft ALM Ranger
    Proud Community Lead
    Information Worker
    S.A. Architect
    www.sadev.co.za
    @rmaclean
  • Overture
    Level 300
    What is new in WCF 4 to make it easy?
    What is AppFabric?
    WCF + AppFabric = Easy
    Warning: Excessive use of implicit, explicit and angle brackets ahead
  • The big picture of WCF 4
    What is new?
    Configuration defaults, default endpoints
    Workflow Services
    High performance tracing with ETW
    New features for REST-based services
    Queued messaging enhancements
    New protocols
    Basic Profile 1.2
    WS-Discovery and DiscoveryService
    RouterService
    New DataContractResolver, extensibility
  • My thoughts on WCF
    WCF is hard
    Compared to ASMX
    Configuration
    Bindings
    Endpoints
  • Building Services
    ASMX
    WCF Sexy
    Write class, add attribute
    Interface + Attribute
    Expose web methods
    Write class, add attribute
    “old” WCF
    Just work with POCO
    Just work with POCO
    Interface + Attribute
    Write class, add attribute
    Data Contracts
    Config
    Config Fixes
  • WCF Sexy
    Demo
  • Protocol Mappings
    This is your binding
    Start with this
    Eg: http://demo
    Default binding config!!!
  • Default Endpoints & Hosts
    Self Host
    Supply base address via code or config
    Explicit: ServiceHost.AddDefaultEndPoints()
    Implicit: ServiceHost.Open()
    IIS
    Base address is .svc endpoint
    HTTP protocol is provided by default
    Protocols can be added in IIS Manager
  • Are Default Endpoints A Good Thing?
    Designed to cater for the current majority
    You may be special
    Quota issues
    WSHttp or WebHttp
    MEX
    Limiting which contracts on which protocols
    You can override in machine.config (bad – mostly) or app.config (better – mostly)
  • Refined Default Config
    <system.serviceModel>
    <behaviors>
    <serviceBehaviors>
    <behavior>
    <serviceMetadatahttpGetEnabled="true"/>
    <serviceDebugincludeExceptionDetailInFaults="false"/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironmentmultipleSiteBindingsEnabled="true" />
    </system.serviceModel>
  • POCO BEFORE .NET 3.5 SP1
    Explicit
    [DataContract]
    publicclassUser
    {
    [DataMember]
    publicstringFirstName { get; set; }
    [DataMember]
    publicstringLastName { get; set; }
    [DataMember]
    publicstring Username { get; set; }
    publicstring Password { get; set; } // do not share
    }
  • POCO FROM .NET 3.5 SP1
    IMPLICIT
    publicclassUser
    {
    publicstringFirstName { get; set; }
    publicstringLastName { get; set; }
    publicstring Username { get; set; }
    [IgnoreDataMember]
    publicstring Password { get; set; } // do not share
    }
  • Been to my other talks?
  • A rose by any other name…
    Windows Server AppFabric Contains two key components
    Hosting
    EndPoint, Windows App Server Extensions, Dublin
    Caching
    Velocity
    Not to be confused with Azure AppFabric
  • N.B. AppFabric
    Requires .NET 4 on Server
    Applications for not need .NET 4, depends on features
    Standalone download or Web Platform Installer
    High Availability is only in Windows Server 2008 Enterprise & Data Centre
  • Windows Server AppFabric Architecture
    Windows Server AppFabric
    Windows Activation Services
    .NET Framework
    SQL Server
    Tooling
    Logging
    IIS
    WCF
    WF
    ASP.NET
    Visual Studio
    SCOM
    PowerShell
    Event Tracing for Windows
    Persistence
    Monitoring
    Caching
  • AppFabric + WCF = Easy
    Demo
  • Summary
    WCF 4 can be as easy as ASMX
    For majority of simple scenarios
    Ability to break the mould is there
    AppFabric & WCF
    The tools to configure and manage services
    Scalable, manageable solution for hosting services on Windows
  • Questions
    robert@sadev.co.za
    @rmaclean
    Meet me at the community lounge
  • Resources
    Required Slide
    Learning
    Sessions On-Demand & Community
    Microsoft Certification & Training Resources
    www.microsoft.com/teched
    www.microsoft.com/learning
    Resources for IT Professionals
    Resources for Developers
    http://microsoft.com/msdn
    http://microsoft.com/technet
    Need more Information?
    SMS [ Your Name ] and the word “AppServer” to 41491
  • Complete an evaluation via CommNet and Tag to win amazing prizes!
  • © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
    The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  • Notes – Hide slide
  • AgendaAgenda Subtitle
    Agenda item 1
    Agenda subheading
    Agenda Item 2
    Agenda subheading
    Agenda item 3
    Agenda subheading
    Etc…
  • Name
    Title
    Company
    Title of Presentation
    SESSION CODE: #####
  • PowerPoint TemplateSubtitle color
    Example of a slide with a subhead
    Set the slide header to “Title Case”
    Set subheads in “sentence case”
    Generally set subhead to 36pt or smaller so it will fit on asingle line
    The subhead color is defined for this template but mustbe selected
  • Sample Fill
    Sample Fill
    PowerPoint Guidelines
    Font, size, and color for text have been formatted for you in the Slide Master
    Use the color palette shown below
    Hyperlink color: www.microsoft.com
    Sample Fill
    Sample Fill
    Sample Fill
    Sample Fill
  • Slide for Showing Software Code
    Use this layout to show software code
    The font is Consolas, a monospace font
    The slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menu
    To use straight quotes " instead of smart quotes ”, do this:
    Click on the Office Button in the upper left corner
    At the bottom of the menu, choose PowerPoint Options
    From the left pane, select Proofing
    Click on the AutoCorrect Options button
    Select the AutoFormat As You Type tab, and deselect “Straight quotes” with “smart quotes”. Then Click OK.
  • Table Format
  • Bar Chart Example
  • Pie Chart Example
  • Breakout sessions
    Breakout sessions
    Breakout sessions
    Breakout sessions
    Related Content