public ImgurUploader(ImgurSettings Settings, ProxySettings ProxySettings, IImgurApiKeys ApiKeys) { _settings = Settings; _proxySettings = ProxySettings; _apiKeys = ApiKeys; }
private void Awake() { settings = Resources.Load <ImgurSettings>(ApplicationSettingsPath); if (settings == null) { throw new System.Exception("Imgur setting is not found. Please create new Imgur Setting."); } }
public ImgUrService(ILogger <ImgUrService> logger, IHttpContextAccessor httpContextAccessor, UserManager <AppUser> userManager, ImgurSettings imgurSettings) { _logger = logger; _httpContextAccessor = httpContextAccessor; _userManager = userManager; _imgurSettings = imgurSettings; _appUser = httpContextAccessor.HttpContext.User.Identity.Name != null ? userManager.FindByEmailAsync(httpContextAccessor.HttpContext.User.Identity.Name).Result : null; }
public ImgurMemesModule(IOptions <ImgurSettings> settings) { _settings = settings.Value; }