|
Well, it is one of the project conditions. Unfortunately, I have no idea how can I do this.
All I know about threads in WCF, is that WCF uses threads from a thread pool to service requests. So when a request begins it draws a thread from this pool to execute the request and after it finishes it returns the thread to the pool.
Thank you for your reply!
|
|
|
|
|
The point is, your project condition is already met. Is this a homework assignment? If not, you have already done what the project is asking.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
you need to explain more what / why you are after creating a thread manually and what you are after achieving in the thread so that we can help you better.
As WCF creates a thread on the IIS server for each instance that it recieves.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
In my Server application I host a web service, which it communicates with client successfully(in localhost). WCF manage the communication between client and service, and it creates threads(automatically) for each client request that is connect.
What I need to do, is creating threads manually in my Server application for each client request.
When thread is started, it will encrypt data's(void function for encrypting) and will sent to the client. after this is done, destroy thread.
|
|
|
|
|
How the host is started:
static void Main(string[] args)
{
Uri httpUrl = new Uri("http://localhost:8010/MyService");
ServiceHost host = new ServiceHost(typeof(ClassLibrary1.Communicatio), httpUrl);
host.AddServiceEndpoint(typeof(ClassLibrary1.IStudent_DB)
, new WSHttpBinding(), "");
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
host.Description.Behaviors.Add(smb);
host.Open();
}
|
|
|
|
|
Solution: Programming WCF Services - O'Reilly //
|
|
|
|
|
I need to jquery source code implement fluid height for my jqgrid. First set the grid height as of screen size height and when the screen resolution changes or when I reduce the screen height the grid height should change based on that.
|
|
|
|
|
I,m also searching for the same.. But still not succeeded. Somebody please help us on this
Vincent
|
|
|
|
|
$(document).ready(function () {
$(window).resize(function () {
setHeight();
});
setHeight();
});
function setHeight() {
try {
var win, ht;
win = $(window).height();
ht = win - 35;
$("#divOfGrid").height(ht);
}
catch (e)
{ }
}
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
We have a website that sends multiple emails on many events, but we have heard that if the number of sent emails becomes more than a limit in one hour, the receiving mail server (such as Yahoo! and Gmail) detects the sender as a spam sender and moves all of those mails to receivers’ spam instead of inbox.
Our question is that what is that limit and How to ignore or eliminate this limit?
Thanks.
Be silent and more think.
|
|
|
|
|
See here[^]; please do not crosspost.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
because I want several people answer me and that answer it's not enough do you have another suggestion to help me?
Thanks
Be silent and more think
|
|
|
|
|
Elham M wrote: because I want several people answer me
See here[^], especially point 1.
Elham M wrote: and that answer it's not enough
Life is hard.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Does any one know about SMS gateway??????
|
|
|
|
|
You need to ask something specific.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi...
In my web application, we are using oracle database. my question is connection pool based on web application. Our application end user around 500. for these which connection is better i) create new connection for every request of user. ii) single connection pool via singleton object of the class iii) session based connection pool ( each user has separate connection pool)
which principle is using for web application? can please give suggestion or valuable link to me
--Thanks
|
|
|
|
|
|
If you get a lot of people connecting. Specfic pool for specfic guy is not an good thing because it whould cost too expensive resource usage.
The ideal solution is one link conducting many database links. In my project. One or serveral thread are only conducting database connecting and sql processsing. When finished the sql it will send data to others.
|
|
|
|
|
Hello all,
In my web site (see sig) I'm using a contact page in roder to allow anyone who needs to contact the company to use any of the available methods. i.e. form contact.
The form contact is a gathering of information and at the end it sends an e-mail.
I'm using:
<form name='contactform' action='herewego.php' method='POST' enctype='application/x-www-form-urlencoded' onsubmit='return checkfx();'>
The checkfx is returning true if everything is ok and false if any of the fields is empty (or full of spaces).
Given the checkfx funtion returns true, some times I'm receiving all the fields empty and this is worrying me a lot as it seems that the company can be loosing mail contacts and at the same time giving a bad impression to the possible customer.
Any idea on what can be happening?
It seems that between the checking of the fields and the sending of the e-mail the contents are being lost...
Thank you very much in advance for your patience (I know this will not be an easy answer with the amount of information that I've posted) and help...
|
|
|
|
|
Your onsubmit handler is only called if the form is submitted by someone using a browser with Javascript enabled. That sounds like it should be most people, but I personally use the "NoScript" addon for Firefox when I visit websites that I don't know or trust very well, and I suspect a lot of other people do the same.
Apart from people without Javascript, you could also be seeing empty form submissions from search engine crawlers. If a crawler follows your form link to "herewego.php", it won't fill in the form to get there.
So, to be certain that you are receiving data from the form correctly you should validate the form data on the server side. Javascript validation can be more user-friendly, but it is quite easy to bypass. Validating first in Javascript and then again in your PHP is the safest option.
|
|
|
|
|
Thank you very much Graham, you've given me good points. I'll check the way to validate the form using php and not javascript.
Thank you very much!
|
|
|
|
|
Already tested and working! thank you again Graham!
|
|
|
|
|
i need source code for asp.net at how update a record at using detailsview update commend
|
|
|
|
|
|
No one will help you if you directly post a question asking for code from scratch.
Try something. If you face issues post a question here.
|
|
|
|