Example #1
0
        public Task <IData> CreateAsync(string key, Stream stream)
        {
            var data = InMemoryData.Create(key, stream);

            values.Add(key, data);
            return(Task.FromResult <IData>(data));
        }
Example #2
0
        public Task <IData> CreateAsync(byte[] byteArray)
        {
            var key  = CreateKey();
            var data = InMemoryData.Create(key, byteArray);

            values.Add(key, data);
            return(Task.FromResult <IData>(data));
        }