Successfully reported this slideshow.

Mastering advanced concepts in Silverlight

1,137 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Mastering advanced concepts in Silverlight

  1. 1. Masteringadvancedconcepts inSilverlight
  2. 2. www.ordina.be www.visug.bewww.snowball.be gill@snowball.be
  3. 3. Theduplex story
  4. 4. Doing it yourself?May not be a good idea!
  5. 5. Starring the HTTP Polling Duplex
  6. 6. CustomBinding binding = new CustomBinding( new PollingDuplexBindingElement(), new BinaryMessageEncodingBindingElement(), new HttpTransportBindingElement());
  7. 7. DEMOTRAIN INFORMATION USINGHTTPPOLLINGDUPLEX
  8. 8. Sockets
  9. 9. SocketAsyncEventArgs.SocketClientAccessPolicyProtocol
  10. 10. tcpListener.BeginAcceptTcpClient(OnBeginAcceptTcpClient, null);
  11. 11. DemoSTOCK TICKER IN SILVERLIGHT USING SOCKETS
  12. 12. NET.TCPBINDING
  13. 13. DemoSTOCK TICKER IN SILVERLIGHT USING NET.TCP BINDING
  14. 14. Splitting your XAP using MEF
  15. 15. Splitting your XAPDEMO
  16. 16. SECURINGCOMMUNICATIONOVER SERVICES
  17. 17. DEMOCHANGING TO HTTPS
  18. 18. DEMOSENDING IN CREDENTIALS
  19. 19. LEVERAGING ASP.NET AUTHENTICATION
  20. 20. DEMO ASP.NET AUTHENTICATION IN SILVERLIGHT
  21. 21. INavigationContentLoader
  22. 22. 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);}
  23. 23. DEMOINavigationContentLoader
  24. 24. DEMO
  25. 25. public interface ICustomTypeProvider{ public Type GetCustomType();}
  26. 26. DEMO
  27. 27. DEMO
  28. 28. <bindings> <basicHttpBinding> <binding name="ImageUploadBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000"> <readerQuotas maxArrayLength="2000000" maxStringContentLength="2000000“ /> </binding> </basicHttpBinding></bindings>
  29. 29. DEMO
  30. 30. VECTOR PRINTING WITH SILVERLIGHT
  31. 31. DEMOVECTOR PRINTING WITH SILVERLIGHT
  32. 32. UNIT TESTINGIN SILVERLIGHT
  33. 33. [TestMethod][Asynchronous]public void AsyncTests(){ EnqueueCallback(() => Assert.IsTrue(true)); EnqueueTestComplete();}
  34. 34. DEMO UNIT TESTINGIN SILVERLIGHT

×