namespace WindowsFormsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public async Task testProxy(string ip, int port)
{
bool OK = false;
try
{...
I've faced with the problem, trying to set a timeout for function execution.
I have the following code:
public BitmapImage[,] GetResult(List<BitmapImage> list)
{
var task = Task.Run(() => GetBestPuzzleImage(list));
if (task.Wait(TimeSpan.FromSeconds(10)))...
Hi everyone, I have something that i simply need to get some help with.
I am doing some exercises with async and await. I have this method that i want to make asynchronous. It simply supposed to take an array of strings, and then create a List of strings with the same content, but just with...
I have developed a GUI in c# .NET 3.5 using VS2008. One function of the GUI is to launch an executable written in Fortran using the Process class in System.Diagnostics. The code to do this is:
ProcessStartInfo si = new ProcessStartInfo(path-to-executable, args);
Process runProc = null...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.