public static bool IsLinuxConsumptionOnLegion()

in src/Microsoft.Azure.WebJobs.Extensions.Dapr/Utils/EnvironmentUtils.cs [24:30]


        public static bool IsLinuxConsumptionOnLegion(INameResolver nameResolver)
        {
            return !IsAppService(nameResolver) &&
                   (!string.IsNullOrEmpty(nameResolver.Resolve(Constants.EnvironmentKeys.ContainerName)) ||
                   !string.IsNullOrEmpty(nameResolver.Resolve(Constants.EnvironmentKeys.WebsitePodName))) &&
                   !string.IsNullOrEmpty(nameResolver.Resolve(Constants.EnvironmentKeys.LegionServiceHost));
        }