コード例 #1
0
 public ImgurUploader(ImgurSettings Settings,
                      ProxySettings ProxySettings,
                      IImgurApiKeys ApiKeys)
 {
     _settings      = Settings;
     _proxySettings = ProxySettings;
     _apiKeys       = ApiKeys;
 }
コード例 #2
0
    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.");
        }
    }
コード例 #3
0
ファイル: ImgUrService.cs プロジェクト: ice19942335/EasyShop
 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;
 }
コード例 #4
0
 public ImgurMemesModule(IOptions <ImgurSettings> settings)
 {
     _settings = settings.Value;
 }