using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ThreadClassLibrary
{
public class Class1
{
//My thread
public double MyThread_Multiply(int a, int b)
{
double retVal = 1;
retVal = a * b;
return retVal;
}
//Call this method in the web application
public double ThreadMultiply(int a, int b)
{
double dd=0;
Thread MyThread = new Thread(delegate()
{
dd = MyThread_Multiply(a, b);
});
MyThread.Start();
return dd;
}
}
}
No comments:
Post a Comment