| |
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.
|
35 Articles match "Application","WCF"
| Related DevelopMentor Courses | MORE | | Ninject WCF Extensions for RESTful Services while ago I blogged about using Ninject for dependency injection with WCF Services. The advantage of using DI is that it allows you to achieve loose coupling in your application architecture, so that you’re not tightly bound to a particular infrastructure implementation, such as data access or logging. The problem with WCF services is that by default they are required to have a parameterless constructor, which does not play nice with DI containers, such as Ninject , which support injection of dependencies via constructor parameters. Technical Ninject WCFToSelf().Named( DevelopMentor Courses - Sunday, April 8, 2012 Roll Your Own REST-ful WCF Router Recently I’ve been tasked with building a WCF routing service and faced the choice of whether to go with the built-in router that ships with WCF 4.0 , or to build one from scratch. However, as the MSDN documentation for the WCF Router states, “ The Routing Service does not currently support routing of WCF REST services. In fact, using the BasicHttpBinding with AspNetCompatibility enabled on the built-in WCF router results in a somewhat cryptic error : “Shouldn’t allocate SessionChannels if session-less and impersonating.”. Technical WCFEnjoy. DevelopMentor Courses - Tuesday, April 24, 2012 Use Common Instance Factory to Abstract Away the Dependency Injection Container Download the Common Instance Factory with WCF Extensions here and is also available on NuGet. while back I wrote a blog post on the Onion Architecture , an approach to building loosely-coupled applications where you can swap out particular components without affecting the rest of the application. This promises the architect’s nirvana of loose coupling , because the GreetingService is abstracted away from the implementation of IGreetingRepository, which allows you to switch from one persistence stack to another without affecting parts of the application which depend on it. DevelopMentor Courses - Wednesday, May 23, 2012 |
106 Articles match "Application","WCF"
| The Latest from DevelopMentor | MORE | | HTML5 WebSockets Traditionally web applications have depended on clients requesting data from the server. And this is fine in most applications. For example a stock broker application requires traders to know about stock price changes as soon as they happen, alerting the trader 5 minutes after the fact is no good. There are different implementations, for example in WCF 4.5 it is going to enable a whole series of applications that where very hard, or even impossible, to write in a scalable way. And that is not just chat applications or tock trading but lots of others. The Problem Solver - Thursday, July 5, 2012 HTML5 WebSockets Traditionally web applications have depended on clients requesting data from the server. And this is fine in most applications. For example a stock broker application requires traders to know about stock price changes as soon as they happen, alerting the trader 5 minutes after the fact is no good. There are different implementations, for example in WCF 4.5 it is going to enable a whole series of applications that where very hard, or even impossible, to write in a scalable way. And that is not just chat applications or tock trading but lots of others. The Problem Solver - Thursday, July 5, 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. Technical DI WCFnull ) { disposable.Dispose(); } } } } }. Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 | -
| The Best from DevelopMentor | MORE | - Using the WCF Web API in an ASP.NET MVC application
Warning: This post is based on a prerelease version of the WCF Web API In my previous blog post I showed how to add to and use the new WCF Web API a console application using NuGet. Now that works but it is far more likely that you will want to be using IIS and host the REST service as part of a web application. Not that there is anything specific to MVC I need here, all I need is a web site and I could have started with a WebForms application just the same. Just like in this post we can add a reference to the WCF Web API to our project. repo = repo; }. The Problem Solver - Monday, June 13, 2011 - WCF Duplex Messaging
I am one of the moderators of the MSDN WCF Forum. However, the first three of these are supported natively in WCF and are known as One-way, request/response and duplex. Duplex Contracts in WCF. In WCF this idea is modelled by the contract. WSHttpBinding is the default for the built in WCF projects but it does not support duplex messaging. It will also need to supply this implementation to the WCF infrastructure and it does this by wrapping an instance in an InstanceContext object and passing it to the proxy constructor. Tags: NET;Azure;WCF .NET Meanderings - Tuesday, June 9, 2009 - Using Silverlight to Access WIF secured WCF Services
Another technology that comes up very often is Silverlight – and especially the “story” of Silverlight and WCF/WIF. An example would be that the user first authenticates with the web application and then starts the Silverlight app from there. This is not different with WIF secured ASP.NET applications. This approach works fine while running in the browser and using “application-local” resources only. Those of you with WCF background will say: “that’s what the federation bindings in WCF are for”. Tags: IdentityModel WCF Passive. Active. WSTrust13. www.leastprivilege.com - Wednesday, October 28, 2009 - Inversion of control and WCF
One of these case is with an WCF service where WCF takes care of the service lifetime and creates new objects as needed. Fortunately WCF is designed in a very modular fashion itself and allows you to replace almost everything in the box. Basically WCF uses an implementation of the IInstanceProvider to create new service objects. Using Ninject with WCF There are plenty of IOC containers to choose from but I like Ninject and that is available through NuGet so that is what I will use for this example. www.dotnetevents.nl.NET WCF VS2010 NuGetrepo = repo; }. The Problem Solver - Tuesday, April 19, 2011 - Digging into WCF REST
Last Thursday evening I presented a talk to the Dallas.NET User Group on support in WCF 4 for building REST-ful services. Building REST-ful Services with the WCF Web Programming Model REST is defined as an architectural style for building services that embrace the principles of the web. He’ll also get down and dirty using the WCF Web Programming Model and show how WCF makes it easy to serve up POX or JSON, increasing the reach of your services to clients that don’t understand or care about SOAP. WCF 3.5 WCF 4.0 Technical WCFEnjoy. Tony and Zuzana's World - Saturday, September 10, 2011 - Using Ninject with WCF Services
In my post on the Onion Architecture I highlight the use of Dependency Injection to loosen the coupling between application components. In an ASP.NET MVC application, it is possible to use repositories directly from controllers, but it may be desirable to place a WCF services façade over the data access layer, so that other kinds of clients, such as Silverlight or WPF, won’t directly access the database. This is commonly referred to as an n-tier application architecture. Technical DI Ninject WCFDownload the code for this post. Enjoy. Tony and Zuzana's World - Monday, October 24, 2011 - Roll Your Own REST-ful WCF Router
Recently I’ve been tasked with building a WCF routing service and faced the choice of whether to go with the built-in router that ships with WCF 4.0 , or to build one from scratch. However, as the MSDN documentation for the WCF Router states, “ The Routing Service does not currently support routing of WCF REST services. In fact, using the BasicHttpBinding with AspNetCompatibility enabled on the built-in WCF router results in a somewhat cryptic error : “Shouldn’t allocate SessionChannels if session-less and impersonating.”. Technical WCFEnjoy. DevelopMentor Courses - Tuesday, April 24, 2012 %>
| | |