Ejemplo n.º 1
0
 public static T GetByEnvironment <T>(this IHostEnvironment hostEnvironment, Func <T> production, Func <T> staging, Func <T> dev) => hostEnvironment.IsStaging() ? staging() : hostEnvironment.GetByEnvironment(production, dev);