public void LogAsync(string message, string title) { LogParameter lp = new LogParameter(message, title); Thread thread = new Thread(new ParameterizedThreadStart(LogAsyncProgress)); thread.Start(lp); }
void LogAsyncProgress(object o) { lock (locker) { LogParameter lp = o as LogParameter; Log(lp.Message, lp.Title); } }