| |
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.
|
17 Articles match "Binding","WCF"
| Related DevelopMentor Courses | MORE | | WCF Instances and Threading I have just found myself answering essentially the same question 4 times on the MSDN WCF Forum about how instances, threading and throttling interact in WCF. WCF has 3 built in instancing models: PerCall, PerSession and Single. In practical terms it means that for Session supporting bindings: NetTcpBinding, WSHttpBinding, NetNamedPipeBinding, etc, every proxy gets an instance on in the service. For bindings that do not support session: BasicHttpBinding, WebHttpBinding, we get the same effect as PerCall. Instancing. Concurrency. Interaction. Threading. DevelopMentor Courses - Friday, February 4, 2011 Building Scalable and Secure WCF Services The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. For this reason you should avoid bindings that establish a session with the service, such as NetTcpBinding or WsHttpBinding with secure conversation enabled. 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. Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. Enjoy. DevelopMentor Courses - Monday, June 18, 2012 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 |
64 Articles match "Binding","WCF"
| The Latest from DevelopMentor | MORE | | Why Does WCF Reject Large Messages By Default? 'If you have been working with WCF for a while you may have noticed that, by default, messages over a certain size fail to get processed. The reason for this is that WCF tries to protect the message receiver from getting swamped with messages that will consume huge amounts of memory to process. The thing that controls this is the maxReceivedMessageSize on the binding which defaults to 64Kb. BasicHttpBinding) there is a second binding parameter that may have to change - the maxBufferSize. Prior to WCF 4.5 However, in WCF 4.5 DevelopMentor Courses - Monday, April 8, 2013 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 Building Scalable and Secure WCF Services The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. For this reason you should avoid bindings that establish a session with the service, such as NetTcpBinding or WsHttpBinding with secure conversation enabled. 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. Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. Enjoy. DevelopMentor Courses - Monday, June 18, 2012 | -
| The Best from DevelopMentor | MORE | - WCF Duplex Messaging
I am one of the moderators of the MSDN WCF Forum. So instead of typing long messages repeating the same thing in answer to these questions I’ve decided to write this blog post to give a bit of background about duplex messaging and then discuss the options for bindings and common problems people have. 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. You went and chose WSDualHttpBinding as your duplex binding. .NET Meanderings - Tuesday, June 9, 2009 - WCF Instances and Threading
I have just found myself answering essentially the same question 4 times on the MSDN WCF Forum about how instances, threading and throttling interact in WCF. WCF has 3 built in instancing models: PerCall, PerSession and Single. In practical terms it means that for Session supporting bindings: NetTcpBinding, WSHttpBinding, NetNamedPipeBinding, etc, every proxy gets an instance on in the service. For bindings that do not support session: BasicHttpBinding, WebHttpBinding, we get the same effect as PerCall. Instancing. Concurrency. Interaction. Threading. DevelopMentor Courses - Friday, February 4, 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. Those of you with WCF background will say: “that’s what the federation bindings in WCF are for”. But there is no federation binding in Silverlight. In WCF you can work around that problem by adding the ValidateMustUnderstand behavior to the client stack. Tags: IdentityModel WCF This topic comes up quite often recently – so I hope the title is search engine friendly. Hopefully this will be a non-issue soon. Passive. Active. www.leastprivilege.com - Wednesday, October 28, 2009 - WCF Express Interop Bindings
WCF might use the WS-* SOAP standard for communications but the WS-* specs leave vendors with a lot op maneuvering room when it comes to how to exactly implement things. As a result doing interoperable work between WCF and, for example, an IBM WebSphere server can be quite tricky to setup. Something I have experienced all to often Fortunately Microsoft has now released the WCF Express Interop Bindings that should make live quite a bit easier. www.dotnetevents.nl.NET WCF VS2010You can download them from CodePlex here. Enjoy! www.TheProblemSolver.nl The Problem Solver - Monday, June 20, 2011 - 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. The HelloModule binds both IGreetingRepository and ServiceHost. Technical DI Ninject WCFDownload the code for this post. Enjoy. Tony and Zuzana's World - Monday, October 24, 2011 - Building Scalable and Secure WCF Services
The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. For this reason you should avoid bindings that establish a session with the service, such as NetTcpBinding or WsHttpBinding with secure conversation enabled. 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. Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. Enjoy. DevelopMentor Courses - Monday, June 18, 2012 - 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. Bind ().ToConstant(Kernel); To (); Bind ().To The Problem Solver - Tuesday, April 19, 2011 %>
| | |