Exemple #1
0
        public AzureImageStorageServiceTests()
        {
            var testKey     = Encoding.UTF8.GetBytes("TESTME");
            var credentials = new AzureImageStorageCredentials("foo",
                                                               Convert.ToBase64String(testKey),
                                                               "https://azurestorage");
            var client = new AzureImageStorageServiceClient(credentials);

            _imageStorageService = new AzureImageStorageService(new NullLogger <AzureImageStorageService>(), client);
        }
 public WilderWeblogProvider(UserManager <WilderUser> userMgr,
                             IWilderRepository repo,
                             IHostEnvironment appEnv,
                             IAzureImageStorageService imageService,
                             ILogger <WilderWeblogProvider> logger)
 {
     _repo         = repo;
     _userMgr      = userMgr;
     _appEnv       = appEnv;
     _imageService = imageService;
     _logger       = logger;
 }
 public ImageController(IWebHostEnvironment env, ILogger <ImageController> logger, IAzureImageStorageService imageService)
 {
     _env          = env;
     _logger       = logger;
     _imageService = imageService;
 }