|
Thanks for the tip.
All I have done to create my Web Service proxy class is to add a Web Reference. I guess I need to extend my proxy class somehow so that I can specify a SoapHeader attribute.
|
|
|
|
|
|
hi Everybody,
I am new to SIP and C#. Now i attempting to create video conferencing Using SIP and C#.
But i dont know how to create SIP server and how to stream video .
Could you please tell me how to do that?
or
Give me some links about video conferencing
sorry for my poor english
Thank you ,
Senthil.P
|
|
|
|
|
Google might be better suited to answer a vague and broad question like that.
|
|
|
|
|
Hello everyone,
I currently clean-up resource in an HttpListenerContext instance in this way.
- Get Request.InputStream, and Close it;
- Get Response.OutputStream, and Close it.
My question is,
Is it the correct way to clean-up resouces? Since I did not fonud a Dispose or Close method for this class. Are there any more elegant way to clean-up resouce for HttpListenerContext?
thanks in advance,
George
|
|
|
|
|
Why are you cleaning up something that you did not instantiate? HttpListenerContext does have a private Close method, and hence it will be cleaned up by the creator of that instance.
|
|
|
|
|
Thanks leppie,
My situation is, I am writing an Http service and handles requests from clients. I do not want to run out of handles for my Http service, so I want to release resources like InputStream/OutputStream handles ASAP.
My concern is, if I do not explicitly Close them after using, when will the streams be closed?
- If it is left to GC to close, it will be bad, since GC runs in an non-determistic manner.
- If they will be released by some parties very quickly, it will be great.
Any comments?
regards,
George
|
|
|
|
|
It depends how you host the HTTP services. Who creates the HttpListenerContext?
|
|
|
|
|
|
George_George wrote: Any comments to my original question after reading the code?
Not really, the GC should do a proper job. Do you see it otherwise?
|
|
|
|
|
Hi leppie,
I know GC can do the job, but what I want to do is to do something like using block, which will release resource ASAP. Since there is no Close/Dispose method for HttpListenerContext, so I manually release Request.InputStream and Response.OutputStream. My question is whether my solution is correct and whether there are any better solutions?
Any comments?
regards,
George
|
|
|
|
|
You can try, but I dont think it will serve any benefit. Run some representative load tests on both cases.
|
|
|
|
|
Any tool could be used to monitor? I prefer to use Perfmon, but if you have better tools, please refer here.
regards,
George
|
|
|
|
|
Process Explorer I prefer, you can see the .NET performance monitors nicely
|
|
|
|
|
|
Just double click the process, and look under the .NET tab.
|
|
|
|
|
Thanks leppie!
I have found them. Like .Net CLR Data, .Net CLR Exceptions, etc. In my case, I should monitor handle, but I can not find a category in this tool for this. Any comments?
regards,
George
|
|
|
|
|
This is under the normal data (iow any process), "Performance" tab. Maybe use the performance graphs (those built into windows) and visualize it a bit better.
|
|
|
|
|
Thanks leppie,
1. Performance Tab in Process Explorer is a different Tab from .NET Tab. Anyway, which entry do you suggest to monitor under Performance Tab?
2.
leppie wrote: performance graphs (those built into windows) and visualize it a bit better
Could Process Explorer generate graph? Do you mean some other tools, like Perfmon?
regards,
George
|
|
|
|
|
plz Guide me what is that "EntryPoint" means.
I need to write a Wrapper.
|
|
|
|
|
Farhantariq wrote: plz Guide me what is that "EntryPoint" means.
Its the exported function name.
Blatantly copied from MSDN:
"You can specify the entry-point name by supplying a string indicating the name of the DLL containing the entry point, or you can identify the entry point by its ordinal. Ordinals are prefixed with the # sign, for example, #1. If you omit this field, the common language runtime uses the name of the.NET method marked with the DllImportAttribute."
|
|
|
|
|
Thanx
I got the point little bit but not the Whole Concept.
Well I want to build a front end in C#,I am an average C# programmer, for DDCT RFID reader "RDF2711". I have the DLL. But I have no Idea about that Entry Point.
|
|
|
|
|
You only really use that if you want to give your extern function declaration a different name.
|
|
|
|
|
Hi,
I have created a webservice and on the client side i want to access it using Httprequest and httpresponse classes.
There are two methods in that webservice.1 method returns a string.the 2nd method requires two integers as input parameters.how do i pass these parameters in the request from the client.
call to Merthod1 from client:
HttpWebRequest myreq = (HttpWebRequest)WebRequest.Create("http://localhost:2054/my_ws/MY_WebService.asmx/HelloWorld");
myreq.Method = "POST";
myreq.ContentType = "application/x-www-form-urlencoded";
call to method2 from client:
HttpWebRequest myreq = (HttpWebRequest)WebRequest.Create("http://localhost:2054/my_ws/MY_WebService.asmx/Add");
myreq.Method = "POST";
myreq.ContentType = "application/x-www-form-urlencoded";
server side for method2:
[WebMethod]
public int Add(int a, int b) {
return (a + b);
}
|
|
|
|
|
What is the reason, that causes you to not insert a Web Reference to your Client Project?
Der Staat mit der niedrigsten Geburtenrate ist nicht die Bundesrepublik, sondern der Vatikan.
|
|
|
|