| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
30 Articles match "Handler","Sample"
| The Latest from DevelopMentor | MORE | | ASP.NET WebAPI Security 3: Extensible Authentication Framework is a so called message handler. Handlers run after the conversion from host to Web API, which means that handler code deals with HttpRequestMessage and HttpResponseMessage. This handler requires a configuration object for initialization. The logic of the message handler is simple: Look at the incoming request. Under the covers I use the WIF security token handler infrastructure to validate credentials and to turn security tokens into claims. My configuration object allows to associate a security token handler with a scheme. Extensible. and 2.0 www.leastprivilege.com - Tuesday, March 13, 2012 Token based Authentication for WCF HTTP/REST Services: Authentication If yes, validate the token using a security token handler, create the claims principal (including claims transformation) and set Thread.CurrentPrincipal. nice piece of existing WIF infrastructure are security token handlers. The way this works with WS-Security based services is that WIF passes the name/namespace of the incoming token to WIF’s security token handler collection. This in turn finds out which token handler can deal with the token and returns the right instances. For the theoretical background, see my previous post. Disclaimer. Goals and requirements. www.leastprivilege.com - Tuesday, November 15, 2011 Token based Authentication and Claims for Restful Services Infrastructure to convert tokens into claims (called security token handler). In the next post I will show you how to implement that for WCF – including full source code and samples. WIF as it exists today is optimized for web applications (passive/WS-Federation) and SOAP based services (active/WS-Trust). While there is limited support for WCF WebServiceHost based services (for standard credential types like Windows and Basic), there is no ready to use plumbing for RESTful services that do authentication based on tokens. But after all, the F in WIF stands for Foundation. www.leastprivilege.com - Tuesday, November 15, 2011 | -
| The Best from DevelopMentor | MORE | - ASP.NET WebAPI Security 3: Extensible Authentication Framework
is a so called message handler. Handlers run after the conversion from host to Web API, which means that handler code deals with HttpRequestMessage and HttpResponseMessage. This handler requires a configuration object for initialization. The logic of the message handler is simple: Look at the incoming request. Under the covers I use the WIF security token handler infrastructure to validate credentials and to turn security tokens into claims. My configuration object allows to associate a security token handler with a scheme. Extensible. and 2.0 www.leastprivilege.com - Tuesday, March 13, 2012 - Easier Async for Silverlight Apps using MVVM
And the BackgroundWorker component lets you write events handlers that are executed on the UI thread when reporting progress or completion. protected void Notify ( EventHandler < NotificationEventArgs > handler, NotificationEventArgs e) { if (handler != null ) { InternalNotify(() => handler( this , e)); } } protected void Notify<TOutgoing> ( EventHandler < NotificationEventArgs <TOutgoing>> handler, NotificationEventArgs <TOutgoing> e) { if (handler != Technical MVVM Silverlight Tony and Zuzana's World - Saturday, January 29, 2011 - WF and ASP.NET - A Few Gotchas
See the sample code referenced at the end of this post for an illustration of the issue, and one potential solution using thread events. Again, see the sample code for an illustration of the issue and one possible resolution. given the synchronous nature of ASP.NET request processing (setting aside async ASP.NET handlers for the moment) I can't generally recommend the use of async activities in workflows used inside ASP.NET. Here's the sample code I refer to above, that illustrates what I'm describing here (requires VS.NET 2008 beta 2). But there's the rub. Enjoy! There Must Be Some Mistake - Monday, October 1, 2007 - Using Model – View – ViewModel with Silverlight
Even thought the UI technology used doesn't change the basic MVVM pattern there are some subtle differences, like not easily being able to use ICommand in Silverlight, so I decided to create a small Silverlight sample. know it is a bit of a lame business rule but it is just a sample. If you need an event handler in your code behind, like the button click, make it a single line and pass the request onto the ViewModel. The View – Model – ViewModel design pattern, also known as MVVM, is getting more popular these days. The View is data bound to a ViewModel. 11: {. 13: set. The Problem Solver - Tuesday, April 7, 2009 - Token based Authentication for WCF HTTP/REST Services: Authentication
If yes, validate the token using a security token handler, create the claims principal (including claims transformation) and set Thread.CurrentPrincipal. nice piece of existing WIF infrastructure are security token handlers. The way this works with WS-Security based services is that WIF passes the name/namespace of the incoming token to WIF’s security token handler collection. This in turn finds out which token handler can deal with the token and returns the right instances. For the theoretical background, see my previous post. Disclaimer. Goals and requirements. www.leastprivilege.com - Tuesday, November 15, 2011 - Screencast: Real-World MVVM with WCF RIA Services
Entities are persisted to the Northwind sample database (using SQL Server 2008 Express) through an ADO.NET Entity Data Model. Wire up event handlers in the View code-behind to handle notifications from the ViewModel. Great news! have just published an online tutorial and screencast for using the Simple MVVM Toolkit to build Real-World MVVM Apps with WCF RIA Services. Screencast Part 1 Streaming (watch now) or Download (offline for pc or mobile device) Screencast Part 2 Streaming (watch now) or Download (offline for pc or mobile device). Bind controls to ViewModel properties. Tony and Zuzana's World - Thursday, April 28, 2011 - Using the Message Mediator Service in MVVM Helpers
5: /// registered as target method handlers for the given message key. 17: /// This registers a specific method as a message handler for a specific type. 20: /// Handler method. 21: void RegisterHandler ( string key, Action handler); 22: 23: ///. 24: /// This registers a specific method as a message handler for a specific type. 26: /// Handler method. handler); 28: 29: ///. 30: /// This unregisters a method as a handler. 33: /// Handler. 34: void UnregisterHandler ( string key, Action handler); 35: 36: ///. 39: /// Handler. %>
| | |