| |
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.
|
11 Articles match "Containers","Sample"
| Related DevelopMentor Courses | MORE | | Use Common Instance Factory to Abstract Away the Dependency Injection Container They key to making it all work is the use of Dependency Injection , also known as Inversion of Control, to delegate creation of types to an external container. Concrete implementations of each interface are registered with the DI container and supplied to the constructor when a request for the type is made from the container. It’s the job of the DI container to provide whichever implementation of IGreetingRepository was registered with the container. You are then tightly coupled to the DI container! Ah, but there’s a problem. Stay tuned for more!) DevelopMentor Courses - Wednesday, May 23, 2012 Decouple WCF Services from their DI Container with Common Instance Factory In my last blog post I introduced the Common Instance Factory , which I built as an alternative to Common Service Locator to reduce coupling between an application and a Dependency Injection (DI) container. If you are careful to register your types early in the startup of your application and avoid referencing the DI container from within your types (which is where the service location ant-pattern rears its ugly head), then selecting a DI container and sticking with it might be perfectly appropriate. null ) { disposable.Dispose(); } } } } }. Enjoy. Technical DI WCF DevelopMentor Courses - Saturday, May 26, 2012 Understanding Map - Reduce Each order line contains the books title, the quantity and the amount it was sold for. Running the sample code produces output like this. This is much like the set after the first Map process and contains duplicate entries for each article so all we need to do is run the same reduce process over this much smaller set of data to get the final result. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Simple right? simple example. 10: }. The Problem Solver - Monday, December 3, 2012 |
53 Articles match "Containers","Sample"
| The Latest from DevelopMentor | MORE | | Understanding Map - Reduce Each order line contains the books title, the quantity and the amount it was sold for. Running the sample code produces output like this. This is much like the set after the first Map process and contains duplicate entries for each article so all we need to do is run the same reduce process over this much smaller set of data to get the final result. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Simple right? simple example. 10: }. The Problem Solver - Monday, December 3, 2012 Understanding Map - Reduce Each order line contains the books title, the quantity and the amount it was sold for. Running the sample code produces output like this. This is much like the set after the first Map process and contains duplicate entries for each article so all we need to do is run the same reduce process over this much smaller set of data to get the final result. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Simple right? simple example. 10: }. The Problem Solver - Monday, December 3, 2012 What’s new in ApprovalTests.Net v.20? Here’s an example var urls = new [] { "/Home/Index/Hello" , "/" }; AspApprovals.VerifyRouting(MvcApplication.RegisterRoutes, urls); In the sample above, the delegate (MvcApplication.RegisterRoutes) will be invokes against a mock route collection, and then fed the URLs provided. sample output would look like this: /Home/Index/Hello = > [[controller, Home], [action, Index], [id, Hello]] / = > [[controller, Cool], [action, Index], [id, ]] Event approvals Similar to the example above, another aspect of code which is often hidden (or implicit) is which events are wired-up to your form. DevelopMentor Courses - Thursday, August 9, 2012 | -
| The Best from DevelopMentor | MORE | - Use Common Instance Factory to Abstract Away the Dependency Injection Container
They key to making it all work is the use of Dependency Injection , also known as Inversion of Control, to delegate creation of types to an external container. Concrete implementations of each interface are registered with the DI container and supplied to the constructor when a request for the type is made from the container. It’s the job of the DI container to provide whichever implementation of IGreetingRepository was registered with the container. You are then tightly coupled to the DI container! Ah, but there’s a problem. Stay tuned for more!) DevelopMentor Courses - Wednesday, May 23, 2012 - Decouple WCF Services from their DI Container with Common Instance Factory
In my last blog post I introduced the Common Instance Factory , which I built as an alternative to Common Service Locator to reduce coupling between an application and a Dependency Injection (DI) container. If you are careful to register your types early in the startup of your application and avoid referencing the DI container from within your types (which is where the service location ant-pattern rears its ugly head), then selecting a DI container and sticking with it might be perfectly appropriate. null ) { disposable.Dispose(); } } } } }. Enjoy. Technical DI WCF DevelopMentor Courses - Saturday, May 26, 2012 - Flowcharts in Workflow 4 and the Switch activity
For example you can have a Sequence activity containing a Flowchart activity and that in turn can contain another Sequence activity which can contain another …. Below a Flowchart containing a mix of a FlowSwitch and a FlowDecision activity, which are only usable in a Flowchart, and some other general activities like a WriteLine and an Assign activity. When I ran the sample I would only get Default printed to the console. Flowcharts are a nice addition to Windows Workflow Foundation 4. In WF 3 we used to model these complex behaviors as state machine workflows. The Problem Solver - Tuesday, October 27, 2009 - Jason’s AJAX Component Library
don’t have any examples of the components it contains online so you’re going to have to download the solution and take a look at the samples on your own machine. The library contains the following extender controls: ReorderColumnsExtender. [Update: This release won't build if you extracted it to a folder with spaces in the path. You might want to get Release 2 instead.]. I’ve been really busy recently working on some extender controls for ASP.NET AJAX. So here is the first release of Jason’s AJAX Component Library. ResizeColumnsExtender. Jason Diamond - Monday, June 4, 2007 - Understanding Map - Reduce
Each order line contains the books title, the quantity and the amount it was sold for. Running the sample code produces output like this. This is much like the set after the first Map process and contains duplicate entries for each article so all we need to do is run the same reduce process over this much smaller set of data to get the final result. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Simple right? simple example. 10: }. The Problem Solver - Monday, December 3, 2012 - Peeling Back the Onion Architecture
This layer would contain your POCO entities. There are a number of DI / IoC containers out there. The assembly containing the Ninject modules references the Data assembly, so that web client doesn’t have to, keeping the web client ignorant of the actual repository implementation. An integration test, for example, would also use the DI container to get instances of interface implementations, without having to reference assemblies containing those classes. To use it you’ll need to download our good old friend, the Northwind sample database. The Web.Ui Tony and Zuzana's World - Saturday, October 8, 2011 - ASP.NET WebAPI Security 4: Examples for various Authentication Scenarios
The Thinktecture.IdentityModel.Http repository includes a number of samples for the various authentication scenarios. My library contains a class that can create the Basic Authentication header value. Stay tuned for more client samples! All the clients follow a basic pattern: Acquire client credential (a single token, multiple tokens, username/password). Call Service. The service simply enumerates the claims it finds on the request and returns them to the client. won’t show that part of the code, but rather focus on the step 1 and 2. Basic Authentication. Result; }. www.leastprivilege.com - Wednesday, March 14, 2012 %>
| | |