摘要:
http://stackoverflow.com/questions/17577016/long-running-task-in-webapi http://blog.stephencleary.com/2014/06/fire-and-forget-on-asp-net.html https:// 阅读全文
摘要:
public class Logger { // 用于存放写日志任务的队列 private Queue _queue; // 用于写日志的线程 private Thread _loggingThread; // 用于通知是否有新日志要写的“信号器” private ManualResetEvent _hasNew; // 构造函数,... 阅读全文