Mike, Thanks for your "real-time" response. I have read both articles: The 1st is great in concept and the 2nd has usable code. My Company blocked Blogging so I have to wait till after 6pm at home to read. I basically modified Steven Pratschner's code and made a Windows Services (.net) that calls Unmanaged API CorBindToRuntimeEx to run a remoting host code. (Just like you said). It really works as a TCP Remoting Host. Though My problem is that I would rather not use my code since it does not have PROVEN scalability in production.(and I do not have 8-CPU machine anyway) Is there any code I can download that has been proven ? Thanks James PS. I have no problem upload my code onto www.codeproject.com, so that we developer can improve and test it in this community.
jqd2001
Posts
-
Server GC vs. Workstation GC -
Server GC vs. Workstation GCHi, Everyone, I read from a Microsoft guide on Performance (www.serverside.net) and it says that Windows Services uses Workstaton GC even Server has multiple CPU. The conclusion seems to be that we should not host TCP Remoting in WinSvcs. My Questions: (1) Is the above true or false ? (I have seen various opinion on this) (2) How to configure to use Server GC ( I have some idea but not sure about it. But I will open source it so everyone can comment later. Your open minded comment are greatly appreicated. Thanks James
-
Checking an objects inheritanceCan you try if (typeof(pTable).BaseType !=typeof(DataTable)) .... James
-
Thread ID for current threadI used the following two: System.Diagnositics.ProcessThread Id Property AppDomain.GetCurrentThreadId() The former is OS Thread ( so Process) The latter is CLR Thread ( so AppDomain) Is that what you are look for ? Any other ways ?? James
-
XML via Socket?Heath, I think in addition, Formatter sink are used to serialize IMessage, have nothing to do with the XML in IMessage. ie. You can even transmmit XML using BinaryFormatter. Transmitt XML using Socket is realistic since mobile device may not support remoting. Correct me if I am making mistakes Thanks James
-
WebSvcs : DynamicHeath, Thank you for the great idea. I actually tried to extend SoapHttpClient as you said: public class MySoapHttpClient : SoapHttpClient { public string TestWebMethod() { this.Invoke("TestWebMethod", ...);} } and use it as MySoapHttpClient obj = new MySoapHttpClient(); obj.Url ="http://localhost/WebService7/Service1.asmx"; obj.Discover(); string s = obj.TestWebMethod(); It works fine. But I cannot replace the signaure "TestWebMethod" with a generic one "Invoke(string MethodName)". Does it mean that Binding must be reflected in the proxy ? Or there are some ways to go arround. James