Do I :
1) use a Delegate which calls my method below (the method below is using the
EnterpriseLibra ry.Data namespace for 2.0)
or
2) Use some sort of implementation of BackGroundWorke r
(http://www.devx.com/dotnet/Article/22358/1954?pf=true) in
System.Componen tModel to perform a call to my method asynchronously?
3) Create a web service then execute the method using the web service and a
delagate
Also, how can I check if it is running asynchronously after I implement
either 1 or 2; what methods can I use to test after I figure this out?
This is for a public website, about 1.5 million users hit it per day, and
we'll be doing a ton of inserts per minute or even second for a specific
process which this method will help in.
Currently this method takes an incoming Search String, calls my stored proc,
and inserts stuff into my table via the defined parameters. I'm using
methods from Enterprise Library 2.0 to perform the insert and we want to keep
it that way. I just need to know how to call this asynchronously. I am a
beginner in this so be easy on me and explain. Thanks for any help!!!!
public static void InsertSearchTer m(string SearchTerm)
{
DateTime CreateDate = DateTime.Now;
Int32 ResultCount = 1;
try
{
DatabaseFactory .CreateDatabase ().ExecuteNonQu ery("insert_sto redproc_name",
SearchTerm, ResultCount, CreateDate);
}
catch
{
throw;
}
Or do I use a web service and things like IAsyncState
--
dba123
--
dba123