Mastering advanced concepts in Silverlight
Upcoming SlideShare
Loading in...5
×
 

Mastering advanced concepts in Silverlight

on

  • 1,119 views

 

Statistics

Views

Total Views
1,119
Views on SlideShare
1,119
Embed Views
0

Actions

Likes
0
Downloads
17
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

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

    Mastering advanced concepts in Silverlight Mastering advanced concepts in Silverlight Presentation Transcript

    • Masteringadvancedconcepts inSilverlight
    • www.ordina.be www.visug.bewww.snowball.be gill@snowball.be
    • Theduplex story
    • Doing it yourself?May not be a good idea!
    • Starring the HTTP Polling Duplex
    • CustomBinding binding = new CustomBinding( new PollingDuplexBindingElement(), new BinaryMessageEncodingBindingElement(), new HttpTransportBindingElement());
    • DEMOTRAIN INFORMATION USINGHTTPPOLLINGDUPLEX
    • Sockets
    • SocketAsyncEventArgs.SocketClientAccessPolicyProtocol
    • tcpListener.BeginAcceptTcpClient(OnBeginAcceptTcpClient, null);
    • DemoSTOCK TICKER IN SILVERLIGHT USING SOCKETS
    • NET.TCPBINDING
    • DemoSTOCK TICKER IN SILVERLIGHT USING NET.TCP BINDING
    • Splitting your XAP using MEF
    • Splitting your XAPDEMO
    • SECURINGCOMMUNICATIONOVER SERVICES
    • DEMOCHANGING TO HTTPS
    • DEMOSENDING IN CREDENTIALS
    • LEVERAGING ASP.NET AUTHENTICATION
    • DEMO ASP.NET AUTHENTICATION IN SILVERLIGHT
    • INavigationContentLoader
    • 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);}
    • DEMOINavigationContentLoader
    • DEMO
    • public interface ICustomTypeProvider{ public Type GetCustomType();}
    • DEMO
    • DEMO
    • <bindings> <basicHttpBinding> <binding name="ImageUploadBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000"> <readerQuotas maxArrayLength="2000000" maxStringContentLength="2000000“ /> </binding> </basicHttpBinding></bindings>
    • DEMO
    • VECTOR PRINTING WITH SILVERLIGHT
    • DEMOVECTOR PRINTING WITH SILVERLIGHT
    • UNIT TESTINGIN SILVERLIGHT
    • [TestMethod][Asynchronous]public void AsyncTests(){ EnqueueCallback(() => Assert.IsTrue(true)); EnqueueTestComplete();}
    • DEMO UNIT TESTINGIN SILVERLIGHT