Example #1
0
        public static IdKeyData Create(string id, string key, byte[] data)
        {
            IdKeyData ikd = new IdKeyData()
            {
                Id   = id,
                Key  = key,
                Data = data
            };

            return(ikd);
        }
Example #2
0
 public static IdKeyData Create(string id, string key, object data)
 {
     return(IdKeyData.Create(id, key, Encoding.UTF8.GetBytes(JsonUtil.Serialize(data))));
 }
Example #3
0
 public static IdKeyData Create(string id, string key, string data)
 {
     return(IdKeyData.Create(id, key, Encoding.UTF8.GetBytes(data)));
 }