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

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