Example #1
0
 private async Task AddSnapshot()
 {
     _snapshot = new Data.Entities.Snapshot {
         FilterListId = _list.Id
     };
     await _dbContext.Snapshots.AddAsync(_snapshot);
 }
Example #2
0
 public SnapshotBatchDe(FilterListsDbContext dbContext, Data.Entities.Snapshot snapshot,
                        IEnumerable <string> rawRules)
 {
     _dbContext = dbContext;
     _snapshot  = snapshot;
     _rawRules  = rawRules;
 }
 public SnapshotBatch(FilterListsDbContext dbContext, IEnumerable <string> lines,
                      Data.Entities.Snapshot snapEntity)
 {
     this.dbContext  = dbContext;
     this.lines      = lines;
     this.snapEntity = snapEntity;
 }
Example #4
0
 public Snapshot(FilterListsDbContext dbContext, FilterListViewUrlDto list)
 {
     this.dbContext = dbContext;
     this.list      = list;
     snapEntity     = new Data.Entities.Snapshot
     {
         FilterListId       = list.Id,
         AddedSnapshotRules = new List <SnapshotRule>()
     };
 }
Example #5
0
 public Snapshot(FilterListsDbContext dbContext, FilterListViewUrlDto list, Logger logger, string uaString)
 {
     this.dbContext = dbContext;
     List           = list;
     ListUrl        = list.ViewUrl;
     this.logger    = logger;
     SnapEntity     = new Data.Entities.Snapshot {
         FilterListId = list.Id, SnapshotRules = new List <SnapshotRule>()
     };
     this.uaString = uaString;
 }
Example #6
0
 public Snapshot(FilterListsDbContext dbContext, Data.Entities.FilterList list, GitHubService gitHubService,
                 Logger logger, string uaString)
 {
     this.dbContext     = dbContext;
     List               = list;
     ListUrl            = list.ViewUrl;
     this.gitHubService = gitHubService;
     this.logger        = logger;
     SnapEntity         = new Data.Entities.Snapshot {
         FilterListId = list.Id, SnapshotRules = new List <SnapshotRule>()
     };
     this.uaString = uaString;
 }