public override bool StoreHandler(DataContainer dc) { var book = (Book)dc.Data; db.Insert(book); Logger.Info($"Store Book: {book.Name}"); return true; }
/// <summary> /// 存储队列处理程序 /// </summary> /// <param name="dc"></param> public void StoreHandler(DataContainer dc) { //TODO [待完善]异常处理 var dcp = _dcpList[dc.GUID]; dcp.StoreHandler(dc); }
public abstract bool StoreHandler(DataContainer dc);
public override bool StoreHandler(DataContainer dc) { var dm = (DemoModel)dc; File.WriteAllText($@"C:\Users\kuref\Desktop\tempf\{dm.ID}.html", dm.Html); return true; }
public override bool StoreHandler(DataContainer dc) { var book = (Book)dc.Data; db.Insert(book); Trace.WriteLine($"Store Book: {book.Name}"); return true; }