You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
506 B
18 lines
506 B
using ApplicationCore.Interfaces;
|
|
using Microsoft.eShopWeb;
|
|
|
|
namespace ApplicationCore.Services
|
|
{
|
|
public class UriComposer : IUriComposer
|
|
{
|
|
private readonly CatalogSettings _catalogSettings;
|
|
|
|
public UriComposer(CatalogSettings catalogSettings) => _catalogSettings = catalogSettings;
|
|
|
|
public string ComposePicUri(string uriTemplate)
|
|
{
|
|
return uriTemplate.Replace("http://catalogbaseurltobereplaced", _catalogSettings.CatalogBaseUrl);
|
|
|
|
}
|
|
}
|
|
}
|
|
|