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