private async Task AddSnapshot() { _snapshot = new Data.Entities.Snapshot { FilterListId = _list.Id }; await _dbContext.Snapshots.AddAsync(_snapshot); }
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; }
public Snapshot(FilterListsDbContext dbContext, FilterListViewUrlDto list) { this.dbContext = dbContext; this.list = list; snapEntity = new Data.Entities.Snapshot { FilterListId = list.Id, AddedSnapshotRules = new List <SnapshotRule>() }; }
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; }
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; }