public StorageAccountService(IStorageAccountRepository storageAccountRepository, IStoragePluginsService storagePluginsService, IStorageAccountSettingsRepository storageAccountSettingsRepository, IConnectionProvider connectionProvider) { _storageAccountRepository = storageAccountRepository; _storagePluginsService = storagePluginsService; _storageAccountSettingsRepository = storageAccountSettingsRepository; _connectionProvider = connectionProvider; }
public StorageAccountService(IStorageAccountRepository storageAccountRepository, IStoragePluginsService storagePluginsService, IStorageAccountSettingsRepository storageAccountSettingsRepository, IConnectionProvider connectionProvider) { _storageAccountRepository = storageAccountRepository; _storagePluginsService = storagePluginsService; _storageAccountSettingsRepository = storageAccountSettingsRepository; _connectionProvider = connectionProvider; }
public static IActionResult GetRepositoryAccessToken( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "repositoryAccessToken")] HttpRequest req, [Inject] IStorageAccountRepository repository, ILogger log) { RepositoryAccessToken token; try { token = new RepositoryAccessToken { StorageAccountName = repository.GetStorageAccountName(), ContainerName = Repository.ContainerName, SASQueryParameter = repository.GetSASQueryParameterForWrite(Repository.ContainerName) }; } catch (Exception e) { log.LogError(e, "Can not create Repository Access Token."); return(new ExceptionResult(e, false)); } return(new OkObjectResult(token)); }
public PiletService(IStorageAccountRepository storageAccountRepository) { _storageAccountRepository = storageAccountRepository; }