public static Common.Enum.CacheTopology GetTopologyType(string topologyName) { Common.Enum.CacheTopology topology = new Common.Enum.CacheTopology(); switch (topologyName.ToLower()) { case "local": topology = Common.Enum.CacheTopology.Local; return(topology); case "mirrored": topology = Common.Enum.CacheTopology.Mirror; return(topology); default: throw new Exception("Invalid Topology name"); } }
public static Common.Enum.CacheTopology GetTopologyType(string topologyName) { Common.Enum.CacheTopology topology = new Common.Enum.CacheTopology(); switch (topologyName.ToLower()) { case "local": topology = Common.Enum.CacheTopology.Local; return(topology); case "replicated": topology = Common.Enum.CacheTopology.Replicated; return(topology); case "partitioned": topology = Common.Enum.CacheTopology.Partitioned; return(topology); default: throw new Exception(); } }