channelfactory Questions

4

Solved

Consider the following code which is typcial of many ChannelFactory examples: WSHttpBinding myBinding = new WSHttpBinding(); EndpointAddress myEndpoint = new EndpointAddress( ConfigurationSetting...
Referendum asked 14/5, 2009 at 22:59

3

Solved

Greetings, what is the problem that when I try to set credentials for my factory as follows: ChannelFactory<IWCFSeekService> factory = Factory; if (factory != null) { factory.Credentials.Us...
Cagle asked 7/3, 2010 at 20:1

3

I am working on an winform application that will access a WCF service self-hosted as a windows service. I am using the ChannelFactory instead of the service reference. I have been successful in con...
Kristine asked 16/12, 2011 at 18:41

3

Solved

May be this is very obious but after doing google alot, couldn't reach to any conclusion. I want to know "does ChannelFactory.CreateChannel() actually open connection or it just return something a...
Prater asked 28/8, 2015 at 6:35

6

Solved

Just wondering under what circumstances would you prefer to generate a proxy from a WCF service when you can just invoke calls using the ChannelFactory? This way you won't have to generate a proxy...
Michaelmichaela asked 8/11, 2009 at 23:16

1

Solved

I have an existing WCF service with a SOAP endpoint, using .NET 4.5. Most of the existing client code is using the ChannelFactory<T> proxy approach. I'd like to change the service to support...
Grajeda asked 11/1, 2015 at 0:0

1

Let's say i'm caching a ChannelFactory<T> and using it to create channels. These channels are used to make WCF calls to other services, and are then being (safely) disposed. Do I need to wor...
Bulk asked 20/12, 2012 at 15:23

4

Solved

I'm trying to convert an existing .NET Remoting application to WCF. Both server and client share common interface and all objects are server-activated objects. In WCF world, this would be similar ...
Farmann asked 8/7, 2010 at 1:50

4

Solved

As the title implies I am trying to get an understanding of why in WCF sometimes people choose to "generate proxies" vs using a ChannelFactory to manually create new channel instances. I have seen ...
Subaqueous asked 22/2, 2010 at 4:51

2

I've just read this great article on WCF ChannelFactory caching by Wenlong Dong. My question is simply how can you actually prove that the ChannelFactory is in fact being cached between calls? I'v...
Hospers asked 21/1, 2010 at 5:46

6

Solved

I have a REST service consumed by a .Net WCF client. When an error is encountered the REST service returns an HTTP 400 Bad Request with the response body containing JSON serialised details. If I ...
Nanci asked 25/3, 2010 at 15:35

1

I am playing with WCF and TPL Async library What I need is to be able request multiple WCF methods and wait untill all will be finished, so far I found that in .NET 4.5 there is very handy method T...

1

Solved

This question is related to Bug in the dynamic language runtime in combination with IIS 7.5 ChannelFactory hangs if I provide it with a correctly typed dynamic object. dynamic src = "MSFT"; var ...
Override asked 13/3, 2013 at 2:44

3

Solved

I am confused about the Proxy and Channels. According to my reading, WCF client is using a proxy which pass the message through a chain of channels. Every Channel is responsible of certain task, fo...
Vulpecula asked 4/3, 2013 at 12:2

2

Solved

I'm looking for a clean way to have the ChannelFactory create channels for me with the ability to dispose them after use. This is what I got: public class ClientFactory : IClientFactory { private...
Christlike asked 5/3, 2013 at 12:3

2

I've been reading that ChannelFactory creation is expensive and that unless there is a technical reason not to, one should reuse ChannelFactories when possible either by caching them someway, or by...
Attemper asked 15/5, 2009 at 20:0

2

Solved

We have a robust WCF client built in 2008 on .NET 3.5 (now recompiled under .NET 4.0) that talks to our own WCF service over the net.tcp binding. The robust client uses ChannelFactory<IOurServic...
Berardo asked 18/11, 2012 at 18:11

2

Solved

How does a WCF channel (created via ChannelFactory) implement ICommunicationObject, but doesn't expose the Close() method, for example, unless you cast the proxy to ICommunicationObject? Does that ...
Through asked 7/8, 2012 at 22:48

2

I'm using the service bus with nettcprelaybinding. One one side is OnPremise server that has a constant connection to the service bus. On the other end is a Azure web role that responds to incoming...

3

Solved

So I've decided to up the performance a bit in my WCF application, and attempt to cache Channels and the ChannelFactory. There's two questions I have about all of this that I need to clear up befor...
Wolfgang asked 20/10, 2011 at 20:19

2

What does it mean for a ChannelFactory to have a State property? I understand that a created channel can have connection based states. But am confused as to why the ChannelFactory also has such con...
Karlsbad asked 6/1, 2010 at 7:26

1

Solved

I am creating a testing tool to stress load a server. I create many different threads that send seperate requests to the server. It appears to be limited by the ChannelFactory. It bottlenecks on ma...
Ionopause asked 20/12, 2011 at 17:32

4

Solved

I've got a hosted WCF service that I created a custom factory for, so that this would work with multiple host headers: /// <summary> /// Required for hosting where multiple host headers are ...
Saddlecloth asked 25/11, 2009 at 16:16

2

Solved

I am getting the following error and I am not sure what I am doing wrong. Does anybody see anything obvious? Below are my project's Web.config and my WCF class library's App.config The Address p...
Testify asked 15/9, 2009 at 17:57

1

Solved

I'd like to fire an event every time I call a WCF service. I've tried the following: var factory = new ChannelFactory<TService>(binding, endPointAdress); factory.Credentials.UserName.UserN...
Cephalothorax asked 24/3, 2011 at 17:14

© 2022 - 2024 — McMap. All rights reserved.