Esempio n. 1
0
        public static DistributeKey FromJson(string json)
        {
            TkDebug.AssertArgumentNullOrEmpty(json, nameof(json), null);

            DistributeKey key = new DistributeKey();

            key.ReadJson(json);
            return(key);
        }
Esempio n. 2
0
        public static string GetDistributeKey(BaseCacheItemCreator creator, string key)
        {
            TkDebug.AssertArgumentNull(creator, nameof(creator), null);
            TkDebug.AssertArgumentNullOrEmpty(key, nameof(key), null);

            string        regName = creator.Attribute.GetRegName(creator.GetType());
            DistributeKey result  = new DistributeKey(regName, key);

            return(result.ToString());
        }