Ejemplo n.º 1
0
        public static List <IDataLoadResult> Delete(string keyString, object context, DataLoader loader)
        {
            Multimedia.Key key = new Multimedia.Key();
            key.blobValue = new BondBlob(Encoding.UTF8.GetBytes(keyString));

            loader.Delete(key, context);
            return(loader.Receive(false));
        }
Ejemplo n.º 2
0
        public static List <IDataLoadResult> Ingest(string keyString, byte[] data, object context, DataLoader loader)
        {
            Multimedia.Key key = new Multimedia.Key();
            key.blobValue = new BondBlob(Encoding.UTF8.GetBytes(keyString));
            Multimedia.Value value = new Multimedia.Value();
            value.blobValue = new BondBlob(data);

            loader.Send(key, value, context);
            return(loader.Receive(false));
        }