forum

Home / DeveloperSection / Forums / Make a method accessible to one user at a time

Make a method accessible to one user at a time

Anonymous User 1505 27-Nov-2014

I have got a method that i want only one user can access at a time. I really don't know how to do this. 

public static int add(int a, int b)
{
 int c = a+b;
 return c;
}

and I am calling this method when a user enters data into two text boxes and click the submit button on a asp.net webpage. I don't want other users access to be denied. They should be kept in some sort of queue and when method is finished serving one user next user should be served.


c# c# 
Updated on 27-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By