示例#1
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             MonitoringRepo.Dispose();
             ApiInfoRepo.Dispose();
         }
         this.disposed = true;
     }
 }
示例#2
0
 public RepositoryContext(AppDbContext dbContext)
 {
     context        = dbContext;
     ApiInfoRepo    = new ApiInfoRepo(context);
     MonitoringRepo = new MonitoringRepo(context);
 }