nettcpbinding

How to use a WCF Dual Service over the internet?

跟風遠走 提交于 2020-01-01 05:38:08
问题 I followed this tutorial (at least based my WCF in this, coz I need then to work alike): http://www.eggheadcafe.com/tutorials/wcf/b5ada8df-58c5-492f-b368-457b3a4f137c/notify-client-applications-using-wcf-callbacks.aspx It's working very well on my computer, but i need to use it over the internet. While trying to do this I heard (over the internet) that is better to use netTcpBiding. I gonna have a server that is going to be aware of the number of clients online. I wanted a WFC service on my

what is the global.asax Application_Start equivalent when using WAS in IIS7

前提是你 提交于 2019-12-28 03:46:05
问题 I'd like to use the netTcpBinding for my WCF application which is currently hosted in IIS7, which means configuring it to use WAS instead. This is fairly straight forward however, my application previously made use of the Application_Start event in the global.asax file. I do not require access to the httpContext(which I understand access has been removed in IIS7), however I would still like to hook into the start or init methods? Does an equivalent exist when hosting an application in WAS as

Why does maxConcurrentSessions default to such a low value? And what is a safe value?

半城伤御伤魂 提交于 2019-12-22 08:39:19
问题 In WCF maxConcurrentSessions defaults to 10, so limiting a server from having more then 10 open TCP connections to it. Why is this so? Is it safe for me just to set it to a very high value for a server that has a "handful" (or two) of clients, but needs to keeps a netTcpBinding open for each clients due to sending events to the clients? 回答1: I assume your instance mode is Per Session. You can set this value to Int32.Max if required. How ever, it is good to understand the WCF Throttling

NetTcpBinding with Streaming and Session

非 Y 不嫁゛ 提交于 2019-12-21 14:59:06
问题 I’m trying to set up a WcfService with the use of NetTcpBinding. I use Transfer mode Streamed since I will transfer large files. I need to use Session, and I have read that NetTcpBinding supports this, but when I turn it on like: SessionMode=SessionMode.Required I get the error: System.InvalidOperationException: Contract requires Session, but Binding 'NetTcpBinding' doesn't support it or isn't configured properly to support it. Does anyone know what I have to do to make NetTcpBinding work

Can't get netTcpBinding requests to show up in Fiddler

天大地大妈咪最大 提交于 2019-12-21 07:54:36
问题 I have a WCF service that has two endpoints. One with basicHttpBinding and one with netTcpBinding. Here is my config... <services> <service name="SomeService.Service"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="" name="EndPointHttp" contract="SomeService.IService" /> <endpoint address="" binding="netTcpBinding" bindingConfiguration="" name="EndPointTcp" contract="SomeService.IService" /> </service> </services> However, when I consume the service I am trying to

Can't get netTcpBinding requests to show up in Fiddler

我与影子孤独终老i 提交于 2019-12-21 07:52:38
问题 I have a WCF service that has two endpoints. One with basicHttpBinding and one with netTcpBinding. Here is my config... <services> <service name="SomeService.Service"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="" name="EndPointHttp" contract="SomeService.IService" /> <endpoint address="" binding="netTcpBinding" bindingConfiguration="" name="EndPointTcp" contract="SomeService.IService" /> </service> </services> However, when I consume the service I am trying to

Hosting Multiple TCP WCF service Endpoints on single Port

主宰稳场 提交于 2019-12-19 10:26:11
问题 I am hosting 3 WCF services inside windows services.Each WCF service contains Multiple endpoints. Right now, i am host all my endpoints thru TCP binding on different ports. Is there any way to host all these end points from different wcf services on same port? 回答1: Sure is! You can use the Net.TCP Port Sharing service. Net.TCP Port Sharing on MSDN 回答2: I just looked into that, out of curiosity. The behavior I discovered seems so strange that I almost don't want to put it here. But it worked

Duplex communication using NetTcpBinding - ContractFilter mismatch?

给你一囗甜甜゛ 提交于 2019-12-19 04:37:12
问题 I'm making slow and steady progress towards having a duplex communication channel open between a client and a server, using NetTcpBinding. (FYI, you can observe my newbie progress here and here!) I'm now at the stage where I have successfully connected to my server, through the server's firewall, and the client can make requests of the server. In the other direction, however, things aren't quite so happy. It works fine when testing on my own machine, but when testing over the internet, when I

Dynamically set endpoint address in wcf client (with net tcp binding)

本小妞迷上赌 提交于 2019-12-18 17:37:31
问题 So I'm not overly familiar with WCF and all the stuff I've googled hasn't helped me with how to achieve what I need. Sorry if this is a dumb question :) Basically there is a server app with services exposed with WCF (net tcp binding). I've written a new console app and I need to call the service. So I can achieve this by adding a dll for the proxy project we have and by adding a bunch of config files (such as WCFClientBindings, WCFClientEndPoints). If I use a defined end point then I can call

Cancel a long running task over WCF from client

眉间皱痕 提交于 2019-12-18 17:00:59
问题 I have a WCF service set to PerCall I would like to know how I can send a Start call from the client to start a long running process, and send a Cancel command to cancel it My WCF service looks something like this [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] public class Service1 : IService1 { CancellationTokenSource cancelToken = new CancellationTokenSource(); public void Start() { var compute = Task.Factory.StartNew(StartLongRunningTask, cancelToken.Token); } public