public PhotoHelper(IServicesBaseUrlSettings servicesBaseUrlSettings, IWebHostEnvironment environment) { currentServiceUrls = servicesBaseUrlSettings.GetServiceUrlsByEnvironment(environment); }
public static ServiceUrls GetServiceUrlsByEnvironment(this IServicesBaseUrlSettings settings, IWebHostEnvironment environment) => environment.IsDevelopment() ? settings.Local : settings.Server;