Ejemplo n.º 1
0
 public Danbooru(IDanbooruApi api, IOptionsMonitor <BooruAuthOptions> options)
 {
     this._api     = api;
     this._options = options;
 }
 protected AbstractDanbooruController(IDanbooruApi api, IMapper mapper, IDataProtectionProvider dataProtectorProvider)
 {
     this._api          = api;
     this._mapper       = mapper;
     this.DataProtector = dataProtectorProvider.CreateProtector("danbooru-api-details");
 }
Ejemplo n.º 3
0
 public NsfwDanbooruController(IDanbooruApi api, IMapper mapper, IDataProtectionProvider dataProtectorProvider, IHostEnvironment env) : base(api, mapper, dataProtectorProvider)
 {
     this.SourceBooru = new SourceBooru("danbooru", "Danbooru", "https://danbooru.donmai.us/");
     this.CookieName  = $"Danbooru-{env.EnvironmentName}";
     this.BaseDomain  = "donmai.us";
 }