Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C# Programming

WCF Proxies


Hi Guys,

Is it expensive to create proxies in WCF?  I always create new proxy
instances (when not using sessions) so I don't have to worry about a
proxy falling into a Faulted state.  I started an application that
where performance is an issue, and I was curious if creating new
proxies is going to create a noticeable slowdown.

Thanks,
James

James,

    I would think that this depends on whether or not they are open, or
closed.  If you have an open proxy, then you probably have a resource that
you don't want to hold onto for too long (this would depend on the
transport, whether it is a named pipe, a socket, msmq, etc, etc).

    I don't think that it's an issue generally though.  If you are thinking
of sharing a proxy, then I would make sure that you have threadsafe access
to the proxy, especially if you are performing callbacks.

    Overall though, I would create and dispose the proxies as needed.

--
          - Nicholas Paldino [.NET/C# MVP]
          - m@spam.guard.caspershouse.com

"james" <james.w@gmail.com> wrote in message

news:1181155775.050770.260260@o11g2000prd.googlegroups.com...

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc