public void LogReadByPage() { Mock<IRequestContext> rc = new Mock<IRequestContext>(); LogSql log = new LogSql(rc.Object,"ShopContext"); log.ReadRange(0, 10); }
public void TestLogSql() { HttpContext.Current = new HttpContext(new HttpRequest("", "http://test.org", ""), new HttpResponse(new StringWriter())); LogSql log = new LogSql(); log.LogWriteInfo("TestLogSql message"); log.Dispose(); }
public void TestLogExplicitDispose() { HttpContext.Current = new HttpContext(new HttpRequest("", "http://test.org", ""), new HttpResponse(new StringWriter())); LogSql log = new LogSql(); log.LogWriteInfo("TestLogSql message"); GC.Collect(); GC.WaitForPendingFinalizers(); }
private void Execute() { for (int i = 0; i < 100; i++) { Task.Factory.StartNew(() => { LogSql log = new LogSql(); log.LogWriteInfo("test message"); log.Dispose(); }, TaskCreationOptions.AttachedToParent); } }
public void addLogList(LogSql ologSql) { ActiveLog oActiveLog = (ActiveLog)this.getCache(); oActiveLog.addLogList(ologSql); }
public void addLogList(LogSql oLogSql) { this._listSql.Add(oLogSql); }