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