SlideShare a Scribd company logo
Mastering
advanced
concepts in
Silverlight
www.ordina.be




                www.visug.be


www.snowball.be
 gill@snowball.be
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
The
duplex
 story
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Doing it yourself?

May not be a good
             idea!
Starring the   HTTP Polling Duplex
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
CustomBinding binding = new CustomBinding(
       new PollingDuplexBindingElement(),
       new BinaryMessageEncodingBindingElement(),
       new HttpTransportBindingElement());
DEMO
TRAIN INFORMATION USING
HTTPPOLLINGDUPLEX
Sockets
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
SocketAsyncEventArgs.SocketClientAccessPolicyProtocol
tcpListener.BeginAcceptTcpClient(OnBeginAcceptTcpClient, null);
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Demo
STOCK TICKER IN SILVERLIGHT USING
                         SOCKETS
Mastering advanced concepts in Silverlight
NET.TCP
BINDING
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Demo
STOCK TICKER IN SILVERLIGHT USING
                   NET.TCP BINDING
Splitting your XAP using MEF
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Splitting your XAP
DEMO
SECURING
COMMUNICATION
OVER SERVICES
Mastering advanced concepts in Silverlight
DEMO
CHANGING TO HTTPS
Mastering advanced concepts in Silverlight
DEMO
SENDING IN CREDENTIALS
LEVERAGING ASP.NET AUTHENTICATION
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
DEMO
 ASP.NET AUTHENTICATION IN SILVERLIGHT
INavigationContentLoader
Mastering advanced concepts in Silverlight
public interface INavigationContentLoader
{
       IAsyncResult BeginLoad(Uri targetUri, Uri currentUri,
       AsyncCallback userCallback, object asyncState);
       void CancelLoad(IAsyncResult asyncResult);
       bool CanLoad(Uri targetUri, Uri currentUri);
       LoadResult EndLoad(IAsyncResult asyncResult);
}
Mastering advanced concepts in Silverlight
DEMO
INavigationContentLoader
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
DEMO
Mastering advanced concepts in Silverlight
public interface ICustomTypeProvider
{
  public Type GetCustomType();
}
DEMO
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
DEMO
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
<bindings>
  <basicHttpBinding>
    <binding name="ImageUploadBinding"
               maxReceivedMessageSize="2000000"
               maxBufferSize="2000000">
       <readerQuotas
               maxArrayLength="2000000"
               maxStringContentLength="2000000“
       />
    </binding>
  </basicHttpBinding>
</bindings>
DEMO
VECTOR PRINTING WITH SILVERLIGHT
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
DEMO
VECTOR PRINTING WITH SILVERLIGHT
UNIT TESTING
IN SILVERLIGHT
Mastering advanced concepts in Silverlight
[TestMethod]
[Asynchronous]
public void AsyncTests()
{
  EnqueueCallback(() => Assert.IsTrue(true));
  EnqueueTestComplete();
}
DEMO

  UNIT TESTING
IN SILVERLIGHT
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight
Mastering advanced concepts in Silverlight

More Related Content

PDF
KEY
Block introduce
PPTX
GWT videocall: power-up your mobile & web app with WebRTC
KEY
block introduce
PDF
Callbacks and control flow in Node js
PPTX
Introduction to Vert.x
PPTX
PPT
Server side JavaScript: going all the way
Block introduce
GWT videocall: power-up your mobile & web app with WebRTC
block introduce
Callbacks and control flow in Node js
Introduction to Vert.x
Server side JavaScript: going all the way

What's hot (16)

PPT
Mobile webapplication development
PDF
Beautiful code instead of callback hell using ES6 Generators, Koa, Bluebird (...
PPTX
Avoiding Callback Hell with Async.js
DOCX
Client server part 12
PPT
Using MongoDB With Groovy
PPTX
Oracles
PDF
How to send gzipped requests with boto3
PPTX
Techniques to Improve Cache Speed
PPT
Java Development with MongoDB (James Williams)
PDF
Deep Dive async/await in Unity with UniTask(EN)
KEY
Streams are Awesome - (Node.js) TimesOpen Sep 2012
KEY
node.js dao
PDF
Node intro
PPTX
Node.js System: The Approach
PDF
Introduction to reactive programming & ReactiveCocoa
PDF
Non-blocking I/O, Event loops and node.js
Mobile webapplication development
Beautiful code instead of callback hell using ES6 Generators, Koa, Bluebird (...
Avoiding Callback Hell with Async.js
Client server part 12
Using MongoDB With Groovy
Oracles
How to send gzipped requests with boto3
Techniques to Improve Cache Speed
Java Development with MongoDB (James Williams)
Deep Dive async/await in Unity with UniTask(EN)
Streams are Awesome - (Node.js) TimesOpen Sep 2012
node.js dao
Node intro
Node.js System: The Approach
Introduction to reactive programming & ReactiveCocoa
Non-blocking I/O, Event loops and node.js
Ad

Viewers also liked (6)

PPT
Silverlight Framework Architecture By Satyen
PDF
Windows workflow foundation using c#
PPT
Silverlight Framework Architecture
PPTX
Windows Workflow Foundation
PPTX
What’s new in Visual Studio 2012 & .NET 4.5
PPTX
Workflow Foundation - Cours 5
Silverlight Framework Architecture By Satyen
Windows workflow foundation using c#
Silverlight Framework Architecture
Windows Workflow Foundation
What’s new in Visual Studio 2012 & .NET 4.5
Workflow Foundation - Cours 5
Ad

Similar to Mastering advanced concepts in Silverlight (20)

PPTX
DODN2009 - Jump Start Silverlight
PPT
No Silverlight Application Is an Island of Richness
PPTX
Silverlight vs HTML5 - Lessons learned from the real world...
PPTX
Consuming Web Services in Microsoft Silverlight 3
PPTX
PPTX
April09SIG_SL3
PPTX
Whats newinsl5
PDF
Silverlight Document Search Engine
PDF
Mike Taulty DevDays 2010 Silverlight 4 Networking
PPTX
Windows 8 Metro apps and the outside world
PDF
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
PPTX
Build 2016 - P426 - Using the Right Networking API for your UWP App
PPT
PDF
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
PPTX
WCF 4 Overview
PDF
Building Rich Internet Apps with Silverlight 2
PPTX
Building dynamic applications with the share point client object model
PPTX
Working with Data and Web Services in Microsoft Silverlight 2
DOCX
download it - ecn.channel9.msdn.com
PPTX
Creating Great Applications in SharePoint 2010 with Silverlight 4
DODN2009 - Jump Start Silverlight
No Silverlight Application Is an Island of Richness
Silverlight vs HTML5 - Lessons learned from the real world...
Consuming Web Services in Microsoft Silverlight 3
April09SIG_SL3
Whats newinsl5
Silverlight Document Search Engine
Mike Taulty DevDays 2010 Silverlight 4 Networking
Windows 8 Metro apps and the outside world
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Build 2016 - P426 - Using the Right Networking API for your UWP App
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
WCF 4 Overview
Building Rich Internet Apps with Silverlight 2
Building dynamic applications with the share point client object model
Working with Data and Web Services in Microsoft Silverlight 2
download it - ecn.channel9.msdn.com
Creating Great Applications in SharePoint 2010 with Silverlight 4

More from Microsoft Developer Network (MSDN) - Belgium and Luxembourg (20)

PPTX
Code in the Cloud - Ghent - 20 February 2015
PPTX
Executive Summit for ISV & Application builders - January 2015
PDF
Executive Summit for ISV & Application builders - Internet of Things
PPTX
Executive Summit for ISV & Application builders - January 2015
PPTX
PPTX
cloud value for application development
PPTX
PPTX
Inside the Microsoft TechDays Belgium Apps
PPTX
PPTX
PPTX
Applied MVVM in Windows 8 apps: not your typical MVVM session!
PPTX
Building SPA’s (Single Page App) with Backbone.js
PPTX
Deep Dive and Best Practices for Windows Azure Storage Services
PPTX
Building data centric applications for web, desktop and mobile with Entity Fr...
Code in the Cloud - Ghent - 20 February 2015
Executive Summit for ISV & Application builders - January 2015
Executive Summit for ISV & Application builders - Internet of Things
Executive Summit for ISV & Application builders - January 2015
cloud value for application development
Inside the Microsoft TechDays Belgium Apps
Applied MVVM in Windows 8 apps: not your typical MVVM session!
Building SPA’s (Single Page App) with Backbone.js
Deep Dive and Best Practices for Windows Azure Storage Services
Building data centric applications for web, desktop and mobile with Entity Fr...

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Cloud computing and distributed systems.
PPTX
sap open course for s4hana steps from ECC to s4
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
A comparative analysis of optical character recognition models for extracting...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Weekly Chronicles - August'25-Week II
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine Learning_overview_presentation.pptx
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
Cloud computing and distributed systems.
sap open course for s4hana steps from ECC to s4

Mastering advanced concepts in Silverlight