<PackageReference Include="Relativity.Transfer.Client" Version="7.2.26" />

PolicyHelper

static class PolicyHelper
namespace Aspera.Transfer { internal static class PolicyHelper { internal static string getCommandLineOption(Policy inPolicy) { switch (inPolicy) { case Policy.FAIR: return "fair"; case Policy.FIXED: return "fixed"; case Policy.HIGH: return "high"; case Policy.LOW: return "low"; default: return "fair"; } } internal static Policy policyFromMgmtValue(string inMgmtValue) { switch (inMgmtValue) { case "Adaptive": return Policy.FAIR; case "Fixed": return Policy.FIXED; case "Trickle": return Policy.LOW; default: return Policy.FAIR; } } internal static string getMgmtValue(Policy inPolicy) { string text = ""; switch (inPolicy) { case Policy.FAIR: return "Adaptive"; case Policy.FIXED: return "Fixed"; case Policy.LOW: return "Trickle"; default: return "Adaptive"; } } } }