Beispiel #1
0
 public SearchManager(Settings settings)
 {
     _dataBacklinkRowService = new DataBacklinkRowService(settings.ConnectionString);
     _dataListedInfoService  = new DataListedInfoService(settings.ConnectionString);
     _dataTagAService        = new DataTagAService(settings.ConnectionString);
     _settings = settings;
 }
Beispiel #2
0
 public FileSave(
     DataBacklinkRowService service,
     DataListedInfoService infoService,
     DataTagAService tagServ,
     Settings settings) : base(service, infoService, tagServ, settings)
 {
 }
Beispiel #3
0
 public SaveBase(DataBacklinkRowService service, DataListedInfoService infoService, DataTagAService tagServ, Settings settings)
 {
     _serv     = service;
     _infoServ = infoService;
     _tagServ  = tagServ;
     _settings = settings;
 }
Beispiel #4
0
        private async Task <BacklinkRow> FreeThread(BacklinkRow row)
        {
            DataBacklinkRowService serv1 = new DataBacklinkRowService(_settings.ConnectionString);
            DataTagAService        serv2 = new DataTagAService(_settings.ConnectionString);

            await serv1.UpdateDataBacklinkRow(row.DataBacklinkRow);

            if (row.DataTagA != null)
            {
                await serv2.CreateDataTagA(row.DataTagA);
            }

            DataBacklinkRow datarow = _dbQueue.Get();

            BacklinkRow newrow = new BacklinkRow()
            {
                DataBacklinkRow = datarow
            };

            return(newrow);
        }