| |
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.
|
27 Articles match "Host","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 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. had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Luckily, the Ninject WCF Extension project had been updated to support REST, so I updated the Nuget package and discovered the project would not compile. 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 Building Scalable and Secure WCF Services The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Nevertheless, there is one wrinkle: by default the WCF HTTP bindings enable Keep-Alive , which can result in server affinity and thereby impede scalability in a load-balanced environment. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. The trick is to fool WCF into thinking we are using a secure channel when in fact we are not. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 |
84 Articles match "Host","WCF"
| The Latest from DevelopMentor | MORE | | The Architecture of WCF 'Before WCF it was, of course, possible for software running on different machines to communicate. The goal of WCF was to provide a unified API for communication and to be able to provide a common level of service irrespective of the underlying transport. To understand the structure of WCF and why it looks the way it does useful starting point are the four tenets of service orientation. There are three core concepts at play whenever you use WCF: messages, channels and encoders. Message is a first class construct in WCF and are modeled on SOAP messages. DevelopMentor Courses - Sunday, April 7, 2013 HTML5 WebSockets There are different implementations, for example in WCF 4.5 There is another library I tend to use at the moment called Fleck which works well but unfortunately doesn't want to share port 80 meaning that I can’t run a live example on my shared hosted site. The required server side code for a simple chat application with Fleck is real simple: var connections = new List (); var host = System.Web.HttpContext.Current.Request.Url.Host; var ws = new WebSocketServer( "ws://" + host + ":81/chat" ); ws.Start(conn => {. WCF HTML5 WebSockets SignalR The Problem Solver - Thursday, July 5, 2012 HTML5 WebSockets There are different implementations, for example in WCF 4.5 There is another library I tend to use at the moment called Fleck which works well but unfortunately doesn't want to share port 80 meaning that I can’t run a live example on my shared hosted site. The required server side code for a simple chat application with Fleck is real simple: var connections = new List (); var host = System.Web.HttpContext.Current.Request.Url.Host; var ws = new WebSocketServer( "ws://" + host + ":81/chat" ); ws.Start(conn => {. WCF HTML5 WebSockets SignalR The Problem Solver - Thursday, July 5, 2012 | -
| The Best from DevelopMentor | MORE | - 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 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. With passive I mean, that the browser has already established a security context with the back-end system the Silverlight.XAP uses (and typically is also hosted at). Those of you with WCF background will say: “that’s what the federation bindings in WCF are for”. In WCF you can work around that problem by adding the ValidateMustUnderstand behavior to the client stack. Tags: IdentityModel WCF Hopefully this will be a non-issue soon. Passive. www.leastprivilege.com - Wednesday, October 28, 2009 - Using Ninject with WCF Services
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. To use this for a non-web host, set the KernelContainer’s Kernel property to an kernel initialized with a Ninject module that binds your types and interfaces. In the.svc file for a web host, you would set the Factory property to NinjectServiceHostFactory. Technical DI Ninject WCFEnjoy. Tony and Zuzana's World - Monday, October 24, 2011 - 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 - Ninject WCF Extensions for RESTful Services
while ago I blogged about using Ninject for dependency injection with WCF Services. 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. had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Luckily, the Ninject WCF Extension project had been updated to support REST, so I updated the Nuget package and discovered the project would not compile. 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 - Building Scalable and Secure WCF Services
The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Nevertheless, there is one wrinkle: by default the WCF HTTP bindings enable Keep-Alive , which can result in server affinity and thereby impede scalability in a load-balanced environment. The problem here is that WCF will not allow you to pass credentials, such as username and password, over a non-secure channel. The trick is to fool WCF into thinking we are using a secure channel when in fact we are not. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 %>
| | |