public PostCreationService(
     IUnitOfWorkFactory unitOfWorkFactory,
     IPostTaggingService postTaggingService,
     ILocationNameService locationNameService,
     OctopostSettings settings)
 {
     this.unitOfWorkFactory   = unitOfWorkFactory;
     this.postTaggingService  = postTaggingService;
     this.locationNameService = locationNameService;
     this.settings            = settings;
 }
Пример #2
0
 public PostTaggingService(OctopostSettings octopostSettings)
 {
     this.octopostSettings = octopostSettings;
     if (string.IsNullOrEmpty(this.octopostSettings.UClassifyApiKey))
     {
         this.FillClasses();
     }
     else
     {
         this.FillClassesUClassify();
     }
 }
 public LocationNameService(IUnitOfWorkFactory unitOfWorkFactory, OctopostSettings settings)
 {
     this.unitOfWorkFactory = unitOfWorkFactory;
     this.octopostSettings  = settings;
 }